From d78f170d6821dc17d2e3bc922d10a590fe534737 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 10 May 2022 10:51:48 +0100 Subject: [PATCH] fix issue with blocks not being toggled --- .../automation/AutomationBuilder/FlowChart/FlowChart.svelte | 1 - .../automation/AutomationBuilder/FlowChart/FlowItemTitle.svelte | 2 +- .../components/automation/AutomationBuilder/TestPanel.svelte | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte index 505a0b9aca..492778bed9 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte @@ -14,7 +14,6 @@ } from "@budibase/bbui" export let automation - let testDataModal let blocks let confirmDeleteDialog diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemTitle.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemTitle.svelte index 6c2eafc770..be4b6bf00e 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemTitle.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemTitle.svelte @@ -28,7 +28,7 @@
{ blockComplete = !blockComplete - showParameters = { complete: !showParameters?.complete, id: block.id } + showParameters[block.id] = blockComplete }} class="splitHeader" > diff --git a/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte b/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte index 4c0dea3958..cc588c87a5 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/TestPanel.svelte @@ -52,7 +52,7 @@
{#if block.stepId !== "LOOP"} - {#if showParameters?.complete && block?.id === showParameters?.id} + {#if showParameters && showParameters[block.id]}