From ebf59338823a6dc4870f7c6a9cc2b8be8462aa9f Mon Sep 17 00:00:00 2001 From: andz-bb Date: Tue, 5 Nov 2024 12:19:45 +0000 Subject: [PATCH] fix for conditional automation step options always showing --- .../automation/SetupPanel/AutomationBlockSetup.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index b422154290..6a8d6fb9c2 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -865,7 +865,7 @@ {#if stepLayouts[block.stepId]} {#each Object.keys(stepLayouts[block.stepId] || {}) as key} - {#if canShowField(key, stepLayouts[block.stepId].schema)} + {#if canShowField(stepLayouts[block.stepId].schema)} {#each stepLayouts[block.stepId][key].content as config} {#if config.title} @@ -890,7 +890,7 @@ {:else} {#each schemaProperties as [key, value]} - {#if canShowField(key, value)} + {#if canShowField(value)} {@const label = getFieldLabel(key, value)}
{#if key !== "fields" && value.type !== "boolean" && shouldRenderField(value)} @@ -913,7 +913,7 @@
{/if}
- {#if value.type === "string" && value.enum && canShowField(key, value)} + {#if value.type === "string" && value.enum && canShowField(value)}