fix(workbench): move @const out of {#if} in AppPagePicker snippet

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-11 16:27:12 +02:00
parent 957060ca55
commit 12bbe29a47

View file

@ -77,10 +77,10 @@
</div>
{/snippet}
{#snippet item(app)}
{@const Icon = app.icon}
<button class="picker-option" onclick={() => onSelect(app.id)}>
<div class="app-icon-wrap">
{#if app.icon}
{@const Icon = app.icon}
{#if Icon}
<Icon size={18} />
{/if}
</div>