diff --git a/packages/nc-gui-v2/components/smartsheet/Gallery.vue b/packages/nc-gui-v2/components/smartsheet/Gallery.vue index 7122525e93..0a4203a6c3 100644 --- a/packages/nc-gui-v2/components/smartsheet/Gallery.vue +++ b/packages/nc-gui-v2/components/smartsheet/Gallery.vue @@ -43,34 +43,44 @@ watch( }, { immediate: true }, ) + +const isRowEmpty = (record: any, col: any) => { + const val = record.row[col.title] + if (!val) return true + + return Array.isArray(val) && val.length === 0 +}