From 47a08e9e60402a0a31d83f2b263434dd8c06b904 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 13 Mar 2024 21:16:15 +0000 Subject: [PATCH] fix(nc-gui): Cannot read properties of undefined (reading 'id') --- packages/nc-gui/components/smartsheet/Gallery.vue | 2 +- packages/nc-gui/components/smartsheet/Kanban.vue | 2 +- packages/nc-gui/components/smartsheet/Map.vue | 2 +- packages/nc-gui/components/smartsheet/calendar/index.vue | 2 +- packages/nc-gui/components/smartsheet/grid/index.vue | 2 +- packages/nc-gui/composables/useExpandedFormStore.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 5ad503ed50..bb4e3f7f02 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -372,7 +372,7 @@ watch( { paginationData.value.totalRows) { { /> { - if (isPublic.value) return + if (isPublic.value || !meta.value?.id) return let record = await $api.dbTableRow.read( NOCO, // todo: base_id missing on view type