From 1592420406bebd9c65c54633eba4f4a2e021c76a Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 4 Oct 2022 17:39:57 +0200 Subject: [PATCH] fix: don't provide null for header tabs --- packages/client/src/pages/user/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/pages/user/index.vue b/packages/client/src/pages/user/index.vue index c8093f3a1..3b47bb91a 100644 --- a/packages/client/src/pages/user/index.vue +++ b/packages/client/src/pages/user/index.vue @@ -66,11 +66,11 @@ function menu(ev) { os.popupMenu(getUserMenu(user), ev.currentTarget ?? ev.target); } -const headerTabs = $computed(() => user ? [{ +const headerTabs = $computed(() => [{ key: 'home', title: i18n.ts.overview, icon: 'fas fa-home', -}, ...($i && ($i.id === user.id)) || user.publicReactions ? [{ +}, ...($i && ($i.id === user?.id)) || user?.publicReactions ? [{ key: 'reactions', title: i18n.ts.reaction, icon: 'fas fa-laugh', @@ -86,7 +86,7 @@ const headerTabs = $computed(() => user ? [{ key: 'gallery', title: i18n.ts.gallery, icon: 'fas fa-icons', -}] : null); +}]); definePageMetadata(computed(() => user ? { icon: 'fas fa-user',