1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

Merge pull request #8256 from Budibase/feature/mongodb-aggregate

MongoDB Aggregate - Handle null or empty steps
This commit is contained in:
melohagan 2022-10-14 09:53:33 +01:00 committed by GitHub
commit a56c1aa2f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 />