From f3b37e11a3bb70c903633289f6ba58a17de76edb Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 17 Sep 2022 20:17:17 +0800 Subject: [PATCH] chore(nc-gui): revise types --- packages/nc-gui/composables/useExpandedFormStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() }