Browse Source

fix(gui): update changed meta of row after save method invoked

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4302/head
Pranav C 2 years ago
parent
commit
a0edacd8b3
  1. 3
      packages/nc-gui/composables/useViewData.ts

3
packages/nc-gui/composables/useViewData.ts

@ -301,6 +301,9 @@ export function useViewData(
ltarState?: Record<string, any>,
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)

Loading…
Cancel
Save