From 9ae8b0e1722d61b8eb37ba3add0a787cf80ebecf Mon Sep 17 00:00:00 2001 From: Yogi Arif Widodo Date: Fri, 16 May 2025 08:20:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(table-group)=20=F0=9F=92=A5=20breaks=20on?= =?UTF-8?q?=20null=20children?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ This ensures .length is only called on arrays. --- src/components/Table.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Table.vue b/src/components/Table.vue index 9db76153..0b46674c 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -606,10 +606,7 @@ export default { showEmptySlot() { if (!this.paginated.length) return true; - if ( - this.paginated[0].label === 'no groups' && - !this.paginated[0].children.length - ) { + if (this.paginated[0].label === 'no groups' && !(this.paginated[0].children || []).length){ return true; }