diff --git a/src/runtime/Story.svelte b/src/runtime/Story.svelte index 9585d76..e99b81f 100644 --- a/src/runtime/Story.svelte +++ b/src/runtime/Story.svelte @@ -144,13 +144,11 @@ {#if isCurrentlyViewed} {#if template && isSnippet(template)} {@render template(renderer.args, renderer.storyContext)} - {:else if children && isSnippet(children)} + {:else if isSnippet(children)} {#if asChild} {@render children()} {:else if renderer.storyContext.component} - - {@render children()} - + {:else} {@render children()} {/if}