From 099647cae297ee2b7d4facb2e7a28ecab373ba64 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 22 Mar 2024 18:51:32 +0100 Subject: [PATCH] fix: small table fixes --- frontend/src/lib/components/RunChart.svelte | 1 - frontend/src/lib/components/table/AutoDataTable.svelte | 7 ++++++- .../routes/(root)/(logged)/workspace_settings/+page.svelte | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/RunChart.svelte b/frontend/src/lib/components/RunChart.svelte index 83227dbaf7..deaa0773a2 100644 --- a/frontend/src/lib/components/RunChart.svelte +++ b/frontend/src/lib/components/RunChart.svelte @@ -128,7 +128,6 @@ minTimeSet: string | undefined, maxTimeSet: string | undefined ) { - console.log(minTimeSet, maxTimeSet) let minTimeSetDate = minTimeSet ? new Date(minTimeSet) : undefined let maxTimeSetDate = maxTimeSet ? new Date(maxTimeSet) : undefined if (minTimeSetDate && maxTimeSetDate) { diff --git a/frontend/src/lib/components/table/AutoDataTable.svelte b/frontend/src/lib/components/table/AutoDataTable.svelte index 675e59d992..1f89d1620e 100644 --- a/frontend/src/lib/components/table/AutoDataTable.svelte +++ b/frontend/src/lib/components/table/AutoDataTable.svelte @@ -411,7 +411,12 @@ {value} {:else} - {@const txt = typeof value == 'object' ? JSON.stringify(value) : value} + {@const txt = + value == undefined + ? '' + : typeof value != 'string' + ? JSON.stringify(value) + : value}