From 4f9b3dcfebb336441aef2e36cc4c67bc550bccc1 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 26 Apr 2024 16:57:28 +0200 Subject: [PATCH] nits autodatatable --- frontend/src/lib/components/table/AutoDataTable.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/table/AutoDataTable.svelte b/frontend/src/lib/components/table/AutoDataTable.svelte index 531da60548..35b269076c 100644 --- a/frontend/src/lib/components/table/AutoDataTable.svelte +++ b/frontend/src/lib/components/table/AutoDataTable.svelte @@ -378,7 +378,7 @@ {:else} {@const txt = - value == undefined + value == undefined || value == null ? '' : typeof value != 'string' ? JSON.stringify(value) @@ -391,7 +391,7 @@
- {txt.length > 100 ? txt.slice(0, 100) + '...' : txt} + {txt?.length > 100 ? txt.slice(0, 100) + '...' : txt}
{txt}