fix: don't provide null for header tabs

This commit is contained in:
Johann150 2022-10-04 17:39:57 +02:00
parent b28c34b57d
commit 1592420406
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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',