diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index fe528de320..90a9dff500 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -46,8 +46,6 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m const activeView = inject(ActiveViewInj, ref()) - const { addOrEditStackRow } = useKanbanViewStoreOrThrow() - const { sharedView } = useSharedView() // getters @@ -197,6 +195,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m } if (activeView.value?.type === ViewTypes.KANBAN) { + const { addOrEditStackRow } = useKanbanViewStoreOrThrow() addOrEditStackRow(row.value, isNewRow) } diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index 7b25a42123..e8cfce4a2c 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -203,8 +203,7 @@ export function useViewData( } async function loadGalleryData() { - if (!viewMeta?.value?.id) return - + if (!viewMeta?.value?.id || isPublic.value) return galleryData.value = await $api.dbView.galleryRead(viewMeta.value.id) }