Merge pull request #14968 from Budibase/budi-8820-conditional-automation-step-options-always-rendering-send

fix for conditional automation step options always showing
This commit is contained in:
Andrew Thompson 2024-11-05 13:58:58 +00:00 committed by GitHub
commit 53955c183b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -865,7 +865,7 @@
<!-- Custom Layouts --> <!-- Custom Layouts -->
{#if stepLayouts[block.stepId]} {#if stepLayouts[block.stepId]}
{#each Object.keys(stepLayouts[block.stepId] || {}) as key} {#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} {#each stepLayouts[block.stepId][key].content as config}
{#if config.title} {#if config.title}
<PropField label={config.title} labelTooltip={config.tooltip}> <PropField label={config.title} labelTooltip={config.tooltip}>
@ -890,7 +890,7 @@
{:else} {:else}
<!-- Default Schema Property Layout --> <!-- Default Schema Property Layout -->
{#each schemaProperties as [key, value]} {#each schemaProperties as [key, value]}
{#if canShowField(key, value)} {#if canShowField(value)}
{@const label = getFieldLabel(key, value)} {@const label = getFieldLabel(key, value)}
<div class:block-field={shouldRenderField(value)}> <div class:block-field={shouldRenderField(value)}>
{#if key !== "fields" && value.type !== "boolean" && shouldRenderField(value)} {#if key !== "fields" && value.type !== "boolean" && shouldRenderField(value)}
@ -913,7 +913,7 @@
</div> </div>
{/if} {/if}
<div class:field-width={shouldRenderField(value)}> <div class:field-width={shouldRenderField(value)}>
{#if value.type === "string" && value.enum && canShowField(key, value)} {#if value.type === "string" && value.enum && canShowField(value)}
<Select <Select
on:change={e => onChange({ [key]: e.detail })} on:change={e => onChange({ [key]: e.detail })}
value={inputData[key]} value={inputData[key]}