From 52d955869868f9d2891bac74a3cd21ae8c3457bd Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Thu, 29 Aug 2024 01:57:22 +0200 Subject: [PATCH] Fixed page breaking when logged out due missing primary stash reference. --- components/header/header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/header/header.vue b/components/header/header.vue index 6f862d5..abc9ade 100644 --- a/components/header/header.vue +++ b/components/header/header.vue @@ -257,7 +257,7 @@ const pageContext = inject('pageContext'); const theme = ref(pageContext.env.theme); const user = pageContext.user; -const { primaryStash } = pageContext.assets; +const primaryStash = pageContext.assets?.primaryStash; const unseen = ref(pageContext.meta.unseenNotifications); const query = ref(pageContext.urlParsed.search.q || ''); const allowLogin = pageContext.env.allowLogin;