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:
parent
ccfaa8d0f7
commit
625e0b8959
@ -17,7 +17,7 @@ export const load: ServerLoad = async ({ locals: { guard }, params }) => {
|
||||
}
|
||||
|
||||
return {
|
||||
user: toPublicUser(user!),
|
||||
user: user ? toPublicUser(user) : undefined,
|
||||
groups: await groups.getAll(),
|
||||
devices: await devices.getAll(),
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user