diff --git a/packages/nc-gui-v2/components/tabs/Smartsheet.vue b/packages/nc-gui-v2/components/tabs/Smartsheet.vue index 012e0a4b38..a4ecab0b4d 100644 --- a/packages/nc-gui-v2/components/tabs/Smartsheet.vue +++ b/packages/nc-gui-v2/components/tabs/Smartsheet.vue @@ -27,17 +27,17 @@ watchEffect(async () => { const reloadEventHook = createEventHook() +const { isGallery, isGrid, isForm, isLocked } = useProvideSmartsheetStore(activeView as Ref, meta) + // todo: move to store provide(MetaInj, meta) provide(TabMetaInj, tabMeta) provide(ActiveViewInj, activeView) -provide(IsLockedInj, false) +provide(IsLockedInj, isLocked) provide(ReloadViewDataHookInj, reloadEventHook) provide(FieldsInj, fields) provide(RightSidebarInj, ref(false)) -const { isGallery, isGrid, isForm } = useProvideSmartsheetStore(activeView as Ref, meta) - watch(tabMeta, async (newTabMeta, oldTabMeta) => { if (newTabMeta !== oldTabMeta && newTabMeta?.id) await getMeta(newTabMeta.id) })