diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index 0f02c920a5..dcdb5b3b28 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -19,6 +19,7 @@ import { isDrawerOrModalExist, ref, useEventListener, + useProject, useRoles, useSelectedCellKeyupListener, watch, diff --git a/packages/nc-gui/components/cell/attachment/utils.ts b/packages/nc-gui/components/cell/attachment/utils.ts index 438ae5c599..86e490a4fb 100644 --- a/packages/nc-gui/components/cell/attachment/utils.ts +++ b/packages/nc-gui/components/cell/attachment/utils.ts @@ -13,6 +13,7 @@ import { isImage, message, ref, + storeToRefs, useApi, useAttachment, useFileDialog, @@ -51,7 +52,7 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState( /** for image carousel */ const selectedImage = ref() - const { project } = useProject() + const { project } = storeToRefs(useProject()) const { api, isLoading } = useApi() diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index 2c028ad472..5b1d40e49e 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -17,6 +17,7 @@ import { reactive, ref, resolveComponent, + storeToRefs, useDialog, useGlobal, useNuxtApp, @@ -35,9 +36,12 @@ const { addTab, updateTab } = useTabs() const { $api, $e } = useNuxtApp() -const { bases, tables, loadTables, isSharedBase } = useProject() +const projectStore = useProject() -const { activeTab } = useTabs() +const { loadTables } = projectStore +const { bases, tables, isSharedBase } = storeToRefs(projectStore) + +const { activeTab } = storeToRefs(useTabs()) const { deleteTable } = useTable() diff --git a/packages/nc-gui/components/dashboard/settings/AuditTab.vue b/packages/nc-gui/components/dashboard/settings/AuditTab.vue index b5a4edef5a..b0319244d7 100644 --- a/packages/nc-gui/components/dashboard/settings/AuditTab.vue +++ b/packages/nc-gui/components/dashboard/settings/AuditTab.vue @@ -1,11 +1,11 @@