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(() => {