diff --git a/site/src/lib/ui/Code/CodeGroupHeader.svelte b/site/src/lib/ui/Code/CodeGroupHeader.svelte index a427856..50d5e36 100644 --- a/site/src/lib/ui/Code/CodeGroupHeader.svelte +++ b/site/src/lib/ui/Code/CodeGroupHeader.svelte @@ -1,12 +1,15 @@
{/if} - {#if tabs.length > 0} + {#if $tabs.length > 1}
- {#each tabs as tab, i} - {@const active = i === activeTab} + {#each $tabs as tab, i} + {@const active = i === $activeTab}