From a0edacd8b38525771e9e0a75d1ac16ba0d6de540 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 7 Nov 2022 16:58:30 +0530 Subject: [PATCH] fix(gui): update changed meta of row after save method invoked Signed-off-by: Pranav C --- packages/nc-gui/composables/useViewData.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index 10e280f0fc..706ab27c57 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -301,6 +301,9 @@ export function useViewData( ltarState?: Record, args: { metaValue?: TableType; viewMetaValue?: ViewType } = {}, ) { + // update changed status + if (row.rowMeta) row.rowMeta.changed = false + // if new row and save is in progress then wait until the save is complete await until(() => !(row.rowMeta?.new && row.rowMeta?.saving)).toMatch((v) => v)