From 0d774a7c9e45e6034f66bca4a75e0f4480f565eb Mon Sep 17 00:00:00 2001 From: Draconizations Date: Mon, 30 May 2022 13:00:57 +0200 Subject: [PATCH] fix(dashboard): fix crash when opening dash while not logged in --- dashboard/src/pages/BulkGroupPrivacy.svelte | 9 +++++++-- dashboard/src/pages/BulkMemberPrivacy.svelte | 10 +++++++--- dashboard/src/pages/Dash.svelte | 2 ++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/dashboard/src/pages/BulkGroupPrivacy.svelte b/dashboard/src/pages/BulkGroupPrivacy.svelte index 35c7a04c..b6abb7c9 100644 --- a/dashboard/src/pages/BulkGroupPrivacy.svelte +++ b/dashboard/src/pages/BulkGroupPrivacy.svelte @@ -1,11 +1,14 @@ +{#if user} @@ -101,4 +105,5 @@ - \ No newline at end of file + +{/if} \ No newline at end of file diff --git a/dashboard/src/pages/BulkMemberPrivacy.svelte b/dashboard/src/pages/BulkMemberPrivacy.svelte index 5742f3b7..5dada199 100644 --- a/dashboard/src/pages/BulkMemberPrivacy.svelte +++ b/dashboard/src/pages/BulkMemberPrivacy.svelte @@ -1,12 +1,14 @@ +{#if user} @@ -103,4 +106,5 @@ import Member from './Member.svelte'; - \ No newline at end of file + +{/if} \ No newline at end of file diff --git a/dashboard/src/pages/Dash.svelte b/dashboard/src/pages/Dash.svelte index 01dd5afc..73ddda6b 100644 --- a/dashboard/src/pages/Dash.svelte +++ b/dashboard/src/pages/Dash.svelte @@ -75,6 +75,7 @@ {#if user && user.banner && ((settings && settings.appearance.banner_top) || !settings)}