From b9f0e82914869927a5853cad8462ee784b565163 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 9 Sep 2022 14:55:34 +0200 Subject: [PATCH] fix: org not loaded fo `$id` of null (when opening url in another tab) --- src/routes/console/organization-[organization]/__layout.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/console/organization-[organization]/__layout.svelte b/src/routes/console/organization-[organization]/__layout.svelte index 647327b21..0233e147b 100644 --- a/src/routes/console/organization-[organization]/__layout.svelte +++ b/src/routes/console/organization-[organization]/__layout.svelte @@ -20,7 +20,7 @@ afterNavigate(handle); async function handle(event = null) { - if ($organization.$id !== organizationId) { + if ($organization?.$id !== organizationId) { await organization.load(organizationId); await memberList.load(organizationId, '', 12, 0); }