Fixed profile page breaking when logged out.

This commit is contained in:
2026-07-26 03:15:50 +02:00
parent 760025f414
commit e50dedca66
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ const domain = pageContext.routeParams.domain;
const user = pageContext.user; const user = pageContext.user;
const profile = ref(pageContext.pageProps.profile); const profile = ref(pageContext.pageProps.profile);
const primaryStash = pageContext.assets.primaryStash; const primaryStash = pageContext.assets?.primaryStash;
const showFilters = ref(false); const showFilters = ref(false);

View File

@@ -31,7 +31,7 @@ async function fetchRevisions(pageContext) {
export async function onBeforeRender(pageContext) { export async function onBeforeRender(pageContext) {
const [profile, alerts, userRevisions, keys] = await Promise.all([ const [profile, alerts, userRevisions, keys] = await Promise.all([
fetchUser(pageContext.routeParams.username, {}, pageContext.user), fetchUser(pageContext.routeParams.username, { throwError: false }, pageContext.user),
pageContext.routeParams.section === 'alerts' && pageContext.routeParams.username === pageContext.user?.username pageContext.routeParams.section === 'alerts' && pageContext.routeParams.username === pageContext.user?.username
? fetchAlerts(pageContext.user) ? fetchAlerts(pageContext.user)
: [], : [],