fix: http 500 on user creation page

there's a lesson about being more careful with non-null assertion in there somewhere
This commit is contained in:
axel 2025-04-19 22:43:28 +02:00
parent ccfaa8d0f7
commit 625e0b8959

View File

@ -17,7 +17,7 @@ export const load: ServerLoad = async ({ locals: { guard }, params }) => {
} }
return { return {
user: toPublicUser(user!), user: user ? toPublicUser(user) : undefined,
groups: await groups.getAll(), groups: await groups.getAll(),
devices: await devices.getAll(), devices: await devices.getAll(),
}; };