Skip to content

Commit 8f0c902

Browse files
committed
fix: add optional chaining for organization ID
1 parent a7b83c6 commit 8f0c902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
} from '$lib/stores/roles';
1919
import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system';
2020
import { IconGithub, IconPlus } from '@appwrite.io/pink-icons-svelte';
21-
import { Icon, Tooltip, Typography, Layout, Badge } from '@appwrite.io/pink-svelte';
21+
import { Badge, Icon, Layout, Tooltip, Typography } from '@appwrite.io/pink-svelte';
2222
2323
let areMembersLimited: boolean;
2424
$: organization.subscribe(() => {
@@ -75,7 +75,7 @@
7575
].filter((tab) => !tab.disabled);
7676
</script>
7777

78-
{#if $organization.$id}
78+
{#if $organization?.$id}
7979
<Cover>
8080
<svelte:fragment slot="header">
8181
<span class="u-flex u-cross-center u-gap-8 u-min-width-0">

0 commit comments

Comments
 (0)