Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik G. <[email protected]>
  • Loading branch information
xeho91 and dominikg authored Nov 13, 2024
1 parent 55c4167 commit 814bbf4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/runtime/Story.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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}
<renderer.storyContext.component {...renderer.args}>
{@render children()}
</renderer.storyContext.component>
<renderer.storyContext.component {children} {...renderer.args}/>
{:else}
{@render children()}
{/if}
Expand Down

0 comments on commit 814bbf4

Please sign in to comment.