fix issue with blocks not being toggled

This commit is contained in:
Peter Clement 2022-05-10 10:51:48 +01:00
parent abd78079d1
commit 80d7a26798
3 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@
} from "@budibase/bbui" } from "@budibase/bbui"
export let automation export let automation
let testDataModal let testDataModal
let blocks let blocks
let confirmDeleteDialog let confirmDeleteDialog

View File

@ -28,7 +28,7 @@
<div <div
on:click={() => { on:click={() => {
blockComplete = !blockComplete blockComplete = !blockComplete
showParameters = { complete: !showParameters?.complete, id: block.id } showParameters[block.id] = blockComplete
}} }}
class="splitHeader" class="splitHeader"
> >

View File

@ -52,7 +52,7 @@
<div class="block"> <div class="block">
{#if block.stepId !== "LOOP"} {#if block.stepId !== "LOOP"}
<FlowItemTitle showTestStatus={true} bind:showParameters {block} /> <FlowItemTitle showTestStatus={true} bind:showParameters {block} />
{#if showParameters?.complete && block?.id === showParameters?.id} {#if showParameters && showParameters[block.id]}
<Divider noMargin /> <Divider noMargin />
<div class="tabs"> <div class="tabs">