Skip to content

Commit

Permalink
simplify more based on previous code review
Browse files Browse the repository at this point in the history
  • Loading branch information
xeho91 committed Nov 13, 2024
1 parent 814bbf4 commit e697925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/Story.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@
</script>
{#if isCurrentlyViewed}
{#if template && isSnippet(template)}
{#if isSnippet(template)}
{@render template(renderer.args, renderer.storyContext)}
{:else if isSnippet(children)}
{#if asChild}
{@render children()}
{:else if renderer.storyContext.component}
<renderer.storyContext.component {children} {...renderer.args}/>
<renderer.storyContext.component {children} {...renderer.args} />
{:else}
{@render children()}
{/if}
Expand Down

0 comments on commit e697925

Please sign in to comment.