diff --git a/src/routes/dashboard/+layout.server.ts b/src/routes/dashboard/+layout.server.ts index 33d94cf..339d025 100644 --- a/src/routes/dashboard/+layout.server.ts +++ b/src/routes/dashboard/+layout.server.ts @@ -1,5 +1,6 @@ import { redirect, type ServerLoad } from '@sveltejs/kit'; -export const load: ServerLoad = async ({ locals: { user } }) => { +export const load: ServerLoad = async ({ locals: { user }, parent }) => { + await parent(); if (!user) throw redirect(303, '/sign-in'); };