Merge pull request #8256 from Budibase/feature/mongodb-aggregate
MongoDB Aggregate - Handle null or empty steps
This commit is contained in:
commit
a56c1aa2f5
|
@ -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 />
|
||||||
|
|
Loading…
Reference in New Issue