1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Don't render anything from repeater if no rows exist

This commit is contained in:
Andrew Kingston 2021-02-03 15:28:56 +00:00
parent 7efdff487e
commit 5b10482fa7

View file

@ -20,8 +20,8 @@
}
</script>
<div use:styleable={$component.styles}>
{#if rows.length > 0}
{#if rows.length > 0}
<div use:styleable={$component.styles}>
{#if $component.children === 0 && $builderStore.inBuilder}
<p>Add some components too</p>
{:else}
@ -31,10 +31,12 @@
</Provider>
{/each}
{/if}
{:else if loaded && $builderStore.inBuilder}
</div>
{:else if loaded && $builderStore.inBuilder}
<div use:styleable={$component.styles}>
<p>Feed me some data</p>
{/if}
</div>
</div>
{/if}
<style>
p {