From 3c6636f100d271ceea8ff823ca83155b9c8cdec5 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 19 Sep 2023 13:05:09 +0530 Subject: [PATCH] fix: small fix --- packages/nc-gui/components/smartsheet/Gallery.vue | 4 +++- packages/nc-gui/components/virtual-cell/Links.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 9307a02fd2..bf424b835e 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -75,7 +75,9 @@ const fieldsWithoutCover = computed(() => fields.value.filter((f) => f.id !== galleryData.value?.fk_cover_image_col_id && !isPrimary(f)), ) -const displayField = computed(() => meta.value?.columns?.find((c) => c.pv) ?? meta.value?.columns[0]) +const displayField = computed(() => + meta.value?.columns?.find((c) => c.pv) ?? meta.value?.columns ? meta.value?.columns[0] : null, +) const coverImageColumn: any = computed(() => meta.value?.columnsById diff --git a/packages/nc-gui/components/virtual-cell/Links.vue b/packages/nc-gui/components/virtual-cell/Links.vue index 1981b298e0..3e0c5eb5d8 100644 --- a/packages/nc-gui/components/virtual-cell/Links.vue +++ b/packages/nc-gui/components/virtual-cell/Links.vue @@ -97,7 +97,7 @@ const localCellValue = computed(() => {