From 979eab05af2b7def439403ab78c13e62d7013b17 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 25 May 2021 21:52:26 +0200 Subject: [PATCH] [api] Fixed session loading --- api/src/stores/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/stores/main.ts b/api/src/stores/main.ts index b4e7121..777782e 100644 --- a/api/src/stores/main.ts +++ b/api/src/stores/main.ts @@ -49,7 +49,7 @@ export const useMainStore = defineStore({ const sessionStore = useSessionStore(); const session = await sessionStore.getSession(this.session.token); if (session) { - this.session = this.session; + this.session = session; const userStore = useUserStore(); const user = await userStore.getUser(this.session.userid); if (user) {