diff options
author | 2021-12-02 10:30:15 -0600 | |
---|---|---|
committer | 2021-12-02 10:30:15 -0600 | |
commit | ac3e870280e983a7977da79b6eec0568d38d8420 (patch) | |
tree | 2c7c95af762f4dceef8abd5f5c17cdc6dce80367 /packages/renderers/renderer-svelte/Wrapper.svelte | |
parent | 62a5e98c9008a1ac88c3c38db64b74723f8fd422 (diff) | |
download | astro-ac3e870280e983a7977da79b6eec0568d38d8420.tar.gz astro-ac3e870280e983a7977da79b6eec0568d38d8420.tar.zst astro-ac3e870280e983a7977da79b6eec0568d38d8420.zip |
fix: renderer behavior with no children (#2078)
* fix: renderer behavior with no children
* [ci] Prettier fix
* Force CI
* fix: properly handle falsy values
* [ci] Prettier fix
* chore: force ci
* [experiment] netlify ignore
Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
Diffstat (limited to 'packages/renderers/renderer-svelte/Wrapper.svelte')
-rw-r--r-- | packages/renderers/renderer-svelte/Wrapper.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/renderers/renderer-svelte/Wrapper.svelte b/packages/renderers/renderer-svelte/Wrapper.svelte index 78d4a402b..c1ee77d91 100644 --- a/packages/renderers/renderer-svelte/Wrapper.svelte +++ b/packages/renderers/renderer-svelte/Wrapper.svelte @@ -13,7 +13,7 @@ const { __astro_component: Component, __astro_children, ...props } = $$props; </script> <svelte:component this={Component} {...props}> - {#if __astro_children} + {#if __astro_children != null} <astro-fragment> {@html __astro_children} </astro-fragment> |