mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 00:02:03 +00:00
fix display result issue
This commit is contained in:
@@ -602,7 +602,8 @@
|
||||
</div>
|
||||
<div class="grow relative">
|
||||
{#if !forceJson && resultKind === 'table-col'}
|
||||
{@const data = 'table-col' in result ? result['table-col'] : result}
|
||||
{@const data =
|
||||
typeof result === 'object' && 'table-col' in result ? result['table-col'] : result}
|
||||
<AutoDataTable
|
||||
class={fixTableSizingToParent
|
||||
? 'absolute inset-0 [&>div]:h-full [&>div]:min-h-[10rem]'
|
||||
@@ -610,7 +611,8 @@
|
||||
objects={objectOfArraysToObjects(data)}
|
||||
/>
|
||||
{:else if !forceJson && resultKind === 'table-row'}
|
||||
{@const data = 'table-row' in result ? result['table-row'] : result}
|
||||
{@const data =
|
||||
typeof result === 'object' && 'table-row' in result ? result['table-row'] : result}
|
||||
<AutoDataTable
|
||||
class={fixTableSizingToParent
|
||||
? 'absolute inset-0 [&>div]:h-full [&>div]:min-h-[10rem]'
|
||||
@@ -618,7 +620,10 @@
|
||||
objects={arrayOfRowsToObjects(data)}
|
||||
/>
|
||||
{:else if !forceJson && resultKind === 'table-row-object'}
|
||||
{@const data = 'table-row-object' in result ? result['table-row-object'] : result}
|
||||
{@const data =
|
||||
typeof result === 'object' && 'table-row-object' in result
|
||||
? result['table-row-object']
|
||||
: result}
|
||||
<AutoDataTable
|
||||
class={fixTableSizingToParent
|
||||
? 'absolute inset-0 [&>div]:h-full [&>div]:min-h-[10rem]'
|
||||
|
||||
Reference in New Issue
Block a user