This commit is contained in:
fabien committed 2026-09-05 11:15:36 +02:00
1 parent 0bb8d1cb46
commit f1b176ae4a
18 files changed
+35 -49

No files matched your search

@@ -1,9 +1,16 @@
import { userApi } from "$lib/api/endpoints/user"
import type { LayoutLoad } from './$types';
import { space } from '$lib/state/space.svelte'
export const load: LayoutLoad = async () => {
const me = await userApi.me()
space.spaces = me.teams
if (!space.current) {
space.current = space.spaces[0].id
}
export const load: LayoutLoad = async ({params}) => {
return {
spaceid: params.space,
me: await userApi.me()
spaceid: space.current,
me: me,
}
}