From 814bbf4f7878ba71b33c741ef2b2f072ae29a696 Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Wed, 13 Nov 2024 19:48:28 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Dominik G. --- src/runtime/Story.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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}