Skip to content

Commit 8e0426a

Browse files
Handle potentially undefined organization in path
1 parent ddcdc9a commit 8e0426a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
});
4040
4141
const organization = $derived(page.data.organization as Organization);
42-
const path = $derived(`${base}/organization-${organization.$id}`);
42+
const path = $derived(`${base}/organization-${organization?.$id}`);
4343
4444
const tabs = $derived(
4545
[

0 commit comments

Comments
 (0)