From 0e6b164e166ba1abe2dfcf6b219146c25b1191f2 Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Wed, 28 Feb 2024 16:17:50 +0100 Subject: [PATCH] fix: table-col/row switch issue in display result (#3311) --- frontend/src/lib/components/DisplayResult.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/DisplayResult.svelte b/frontend/src/lib/components/DisplayResult.svelte index b90216aa14..8fbd7081af 100644 --- a/frontend/src/lib/components/DisplayResult.svelte +++ b/frontend/src/lib/components/DisplayResult.svelte @@ -252,7 +252,7 @@ {#if result != undefined && length != undefined && largeObject != undefined}
- {#if (resultKind && !['json', 's3object', 's3object-list'].includes(resultKind) && !hideAsJson) || isTableDisplay} + {#if (resultKind && !['json', 's3object', 's3object-list', 'table-col', 'table-row'].includes(resultKind) && !hideAsJson) || isTableDisplay} { if (isTableDisplay) { richRender = ev.detail === 'table' - } else { - forceJson = ev.detail === 'json' } + forceJson = ev.detail === 'json' }} > - {#if resultKind && !['json', 's3object', 's3object-list'].includes(resultKind) && !hideAsJson} + {#if resultKind && !['json', 's3object', 's3object-list', 'table-col', 'table-row'].includes(resultKind) && !hideAsJson} {/if} {#if isTableDisplay}