Browse Source

Merge pull request #4454 from nocodb/fix/shared-gallery-view

fix: shared gallery view
pull/4458/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
094b22e186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nc-gui/composables/useExpandedFormStore.ts
  2. 3
      packages/nc-gui/composables/useViewData.ts

3
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)
}

3
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)
}

Loading…
Cancel
Save