Don't render anything from repeater if no rows exist
This commit is contained in:
parent
019316e508
commit
c2dc2d2b15
|
@ -20,8 +20,8 @@
|
||||||
}
|
}
|
||||||
</script>
|
</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}
|
{#if $component.children === 0 && $builderStore.inBuilder}
|
||||||
<p>Add some components too</p>
|
<p>Add some components too</p>
|
||||||
{:else}
|
{:else}
|
||||||
|
@ -31,10 +31,12 @@
|
||||||
</Provider>
|
</Provider>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
{:else if loaded && $builderStore.inBuilder}
|
|
||||||
<p>Feed me some data</p>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
|
{:else if loaded && $builderStore.inBuilder}
|
||||||
|
<div use:styleable={$component.styles}>
|
||||||
|
<p>Feed me some data</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
p {
|
p {
|
||||||
|
|
Loading…
Reference in New Issue