- {#if (resultKind && typeof result == 'object' && !['json', 's3object', 's3object-list', 'table-col', 'table-row'].includes(resultKind) && !hideAsJson) || isTableDisplay}
+
+ {#if !hideAsJson && !['json', 's3object'].includes(resultKind ?? '') && typeof result === 'object'}
{
- if (isTableDisplay) {
- richRender = ev.detail === 'table'
- }
forceJson = ev.detail === 'json'
}}
>
- {#if resultKind && !['json', 's3object', 's3object-list', 'table-col', 'table-row'].includes(resultKind) && !hideAsJson}
-
- {/if}
- {#if isTableDisplay}
+ {#if ['table-col', 'table-row', 'table-row-object'].includes(resultKind ?? '')}
+ {:else}
+
{/if}
@@ -327,22 +383,13 @@
{#if !forceJson && resultKind == 'table-col'}
{@const data = 'table-col' in result ? result['table-col'] : result}
-
{:else if !forceJson && resultKind == 'table-row'}
{@const data = 'table-row' in result ? result['table-row'] : result}
-
+ {:else if !forceJson && resultKind == 'table-row-object'}
+ {@const data = 'table-row-object' in result ? result['table-row-object'] : result}
+
{#if !requireHtmlApproval || enableHtml}
@@ -537,8 +584,6 @@
- {:else if !forceJson && isTableDisplay && richRender}
-
{:else if largeObject}
{#if result && typeof result == 'object' && 'file' in result}