From b11a5a2df6d55f5b9b1d7a650550279e4cdeefdb Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 3 Mar 2023 18:00:09 +0100 Subject: [PATCH] only bind the staticoutputs of the first row --- .../components/display/table/AppTable.svelte | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/frontend/src/lib/components/apps/components/display/table/AppTable.svelte b/frontend/src/lib/components/apps/components/display/table/AppTable.svelte index 3c71e9f2ce..79e66113be 100644 --- a/frontend/src/lib/components/apps/components/display/table/AppTable.svelte +++ b/frontend/src/lib/components/apps/components/display/table/AppTable.svelte @@ -242,16 +242,28 @@ toggleRow(row, rowIndex)}>
{#each actionButtons as actionButton, actionIndex (actionIndex)} - { - toggleRow(row, rowIndex) - }} - extraQueryParams={{ row: row.original }} - bind:componentInput={actionButton.componentInput} - bind:staticOutputs={$staticOutputsStore[actionButton.id]} - /> + {#if rowIndex == 0} + { + toggleRow(row, rowIndex) + }} + extraQueryParams={{ row: row.original }} + bind:componentInput={actionButton.componentInput} + bind:staticOutputs={$staticOutputsStore[actionButton.id]} + /> + {:else} + { + toggleRow(row, rowIndex) + }} + extraQueryParams={{ row: row.original }} + bind:componentInput={actionButton.componentInput} + /> + {/if} {/each}