From a2fe6c56e094abcd66ee5c630ccf5b80356f5554 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 20 Aug 2023 12:17:19 +0200 Subject: [PATCH] improve rendering for string results --- frontend/src/lib/components/DisplayResult.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/DisplayResult.svelte b/frontend/src/lib/components/DisplayResult.svelte index 80cfbe1415..9f912d9232 100644 --- a/frontend/src/lib/components/DisplayResult.svelte +++ b/frontend/src/lib/components/DisplayResult.svelte @@ -279,7 +279,7 @@ JSON is too large to be displayed in full. - {:else if typeof result == 'string'} + {:else if typeof result == 'string' && result.length > 0}
{result}
- {:else if typeof result == 'string'} + {:else if typeof result == 'string' && result.length > 0}
{result}