From c6403b62f8dc0e5bfe25a1c6306fb7040ca447ae Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 1 Dec 2022 19:33:19 +0530 Subject: [PATCH] fix: verify property exist in row object Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/Grid.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue index 8ff5b1d071..e83e2ab88d 100644 --- a/packages/nc-gui/components/smartsheet/Grid.vue +++ b/packages/nc-gui/components/smartsheet/Grid.vue @@ -534,7 +534,7 @@ const saveOrUpdateRecords = async (args: { metaValue?: TableType; viewMetaValue? currentRow.rowMeta.changed = false for (const field of (args.metaValue || meta.value)?.columns ?? []) { 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) } }