Browse Source

fix(nc-gui): return loadGalleryData if it is public

pull/4454/head
Wing-Kam Wong 2 years ago
parent
commit
db0db46a5d
  1. 3
      packages/nc-gui/composables/useViewData.ts

3
packages/nc-gui/composables/useViewData.ts

@ -203,8 +203,7 @@ export function useViewData(
} }
async function loadGalleryData() { async function loadGalleryData() {
if (!viewMeta?.value?.id) return if (!viewMeta?.value?.id || isPublic.value) return
galleryData.value = await $api.dbView.galleryRead(viewMeta.value.id) galleryData.value = await $api.dbView.galleryRead(viewMeta.value.id)
} }

Loading…
Cancel
Save