From c2dc2d2b15923ae71f42b8de03c238ae421fb36c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 3 Feb 2021 15:28:56 +0000 Subject: [PATCH] Don't render anything from repeater if no rows exist --- packages/standard-components/src/List.svelte | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/standard-components/src/List.svelte b/packages/standard-components/src/List.svelte index ca484d75d3..0c09e0b884 100644 --- a/packages/standard-components/src/List.svelte +++ b/packages/standard-components/src/List.svelte @@ -20,8 +20,8 @@ } -
- {#if rows.length > 0} +{#if rows.length > 0} +
{#if $component.children === 0 && $builderStore.inBuilder}

Add some components too

{:else} @@ -31,10 +31,12 @@ {/each} {/if} - {:else if loaded && $builderStore.inBuilder} +
+{:else if loaded && $builderStore.inBuilder} +

Feed me some data

- {/if} -
+
+{/if}