Skip to content

Commit ae1f4b0

Browse files
committed
fix: simplify organization ID retrieval in header component
1 parent a51ff50 commit ae1f4b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/routes/(console)/organization-[organization]/header.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
3333
$: organization = page.data.organization as Organization;
3434
$: avatars = $members.memberships?.map((m) => m.userName || m.userEmail) ?? [];
35-
$: organizationId = organization?.$id ?? page.params.organization;
36-
$: path = `${base}/organization-${organizationId}`;
35+
$: path = `${base}/organization-${organization.$id}`;
3736
$: tabs = [
3837
{
3938
href: path,

0 commit comments

Comments
 (0)