diff --git a/packages/nc-gui-v2/components/smartsheet/Gallery.vue b/packages/nc-gui-v2/components/smartsheet/Gallery.vue index 75b249c440..25a7bbc5a6 100644 --- a/packages/nc-gui-v2/components/smartsheet/Gallery.vue +++ b/packages/nc-gui-v2/components/smartsheet/Gallery.vue @@ -79,7 +79,7 @@ const isRowEmpty = (record: any, col: any) => { const attachments = (record: any): Array => { try { - return coverImageColumn?.title ? JSON.parse(record.row[coverImageColumn.title]) : [] + return coverImageColumn?.title && record.row[coverImageColumn.title] ? JSON.parse(record.row[coverImageColumn.title]) : [] } catch (e) { return [] } @@ -105,19 +105,24 @@ openNewRecordFormHook?.on(async () => {