diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index 6260c7e567..088e9a527d 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -31,8 +31,8 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m const { project } = useProject() const rowStore = useProvideSmartsheetRowStore(meta, row) const { sharedView } = useSharedView() as Record - const activeView = inject(ActiveViewInj) - const { loadKanbanData } = useKanbanViewData(meta, activeView as any) + const activeView = inject(ActiveViewInj, ref()) + const { loadKanbanData } = useKanbanViewData(meta, activeView) // const { updateOrSaveRow, insertRow } = useViewData(meta, activeView as any) @@ -160,7 +160,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m return message.info(t('msg.info.noColumnsToUpdate')) } - if (activeView?.value.type === ViewTypes.KANBAN) { + if (activeView.value?.type === ViewTypes.KANBAN) { await loadKanbanData() }