diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue index 792fd17e9a..0936f50430 100644 --- a/packages/nc-gui/components/smartsheet/Grid.vue +++ b/packages/nc-gui/components/smartsheet/Grid.vue @@ -1,5 +1,5 @@ diff --git a/packages/nc-gui/composables/useSmartsheetRowStore.ts b/packages/nc-gui/composables/useSmartsheetRowStore.ts index 8be672e396..bcb44aef54 100644 --- a/packages/nc-gui/composables/useSmartsheetRowStore.ts +++ b/packages/nc-gui/composables/useSmartsheetRowStore.ts @@ -51,7 +51,11 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState( return message.info(t('msg.info.valueAlreadyInList')) } - state.value[column.title!]!.push(value) + if (Array.isArray(value)) { + state.value[column.title!]!.push(...value) + } else { + state.value[column.title!]!.push(value) + } } else if (isBt(column)) { state.value[column.title!] = value } @@ -119,6 +123,9 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState( { metaValue }, ) } + + // clear LTAR refs after sync + state.value[column.title!] = null } }