Browse Source

Merge pull request #4559 from nocodb/fix/4557-cell-data-sync

fix: Grid - Sync unsaved data properly when switching tab
pull/4560/head
Pranav C 2 years ago committed by GitHub
parent
commit
78e851d8be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nc-gui/components/smartsheet/Grid.vue

4
packages/nc-gui/components/smartsheet/Grid.vue

@ -534,8 +534,8 @@ const saveOrUpdateRecords = async (args: { metaValue?: TableType; viewMetaValue?
currentRow.rowMeta.changed = false currentRow.rowMeta.changed = false
for (const field of (args.metaValue || meta.value)?.columns ?? []) { for (const field of (args.metaValue || meta.value)?.columns ?? []) {
if (isVirtualCol(field)) continue if (isVirtualCol(field)) continue
if (currentRow.row[field.title!] !== currentRow.oldRow[field.title!]) { if (field.title! in currentRow.row && currentRow.row[field.title!] !== currentRow.oldRow[field.title!]) {
await updateOrSaveRow(currentRow, field.title!, args) await updateOrSaveRow(currentRow, field.title!, {}, args)
} }
} }
} }

Loading…
Cancel
Save