Skip to content

Commit

Permalink
fix(ui): properly expand databases
Browse files Browse the repository at this point in the history
  • Loading branch information
oktal committed Sep 15, 2024
1 parent 502b838 commit 3d3a99b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/components/explorer/EntityTree.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@
}
</script>

<Collapsible.Root>
{#each databases as { name: databaseName, schemas }}
{#each databases as { name: databaseName, schemas }}
<Collapsible.Root>
{@render trigger({
nodeType: 'database',
label: databaseName,
Expand Down Expand Up @@ -212,8 +212,8 @@
</Collapsible.Root>
{/each}
</Collapsible.Content>
{/each}
</Collapsible.Root>
</Collapsible.Root>
{/each}

{#snippet trigger({
nodeType,
Expand All @@ -224,7 +224,7 @@
label: string;
context: NodeContext;
})}
{@const id = `${context.kind}-${label}`}
{@const id = `${nodeType}-${label}`}
{@const icon = nodes[context.kind].icon}
<Collapsible.Trigger asChild let:builder>
<ContextMenu.Root>
Expand Down

0 comments on commit 3d3a99b

Please sign in to comment.