diff --git a/packages/nc-gui/components/smartsheet/Row.vue b/packages/nc-gui/components/smartsheet/Row.vue index 08da031a45..9f2b3f8cd9 100644 --- a/packages/nc-gui/components/smartsheet/Row.vue +++ b/packages/nc-gui/components/smartsheet/Row.vue @@ -1,5 +1,4 @@ diff --git a/packages/nc-gui/composables/useSmartsheetRowStore.ts b/packages/nc-gui/composables/useSmartsheetRowStore.ts index 2db97e94ed..b5969a71d7 100644 --- a/packages/nc-gui/composables/useSmartsheetRowStore.ts +++ b/packages/nc-gui/composables/useSmartsheetRowStore.ts @@ -140,6 +140,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState( column.title as string, extractPkFromRow(currentRow.value.row[column.title!], relatedTableMeta?.columns as ColumnType[]), ) + currentRow.value.row[column.title!] = null } else { for (const link of (currentRow.value.row[column.title!] as Record[]) || []) { await $api.dbTableRow.nestedRemove( @@ -151,6 +152,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState( column.title as string, extractPkFromRow(link, relatedTableMeta?.columns as ColumnType[]), ) + currentRow.value.row[column.title!] = [] } } }