Handle null or empty steps

This commit is contained in:
Mel O'Hagan 2022-10-14 08:02:29 +01:00
parent 16c6c2367c
commit 26a16f1931
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@
{/if} {/if}
{:else if query.fields.extra?.actionType === "pipeline"} {:else if query.fields.extra?.actionType === "pipeline"}
<br /> <br />
{#if query.fields.steps?.length === 0} {#if !query.fields.steps?.length}
<div class="controls"> <div class="controls">
<Button <Button
secondary secondary
@ -119,7 +119,7 @@
</div> </div>
<br /> <br />
{:else} {:else}
{#each query.fields.steps as step, index} {#each query.fields.steps ?? [] as step, index}
<div class="block"> <div class="block">
<div class="subblock"> <div class="subblock">
<Divider noMargin /> <Divider noMargin />