[api] Fixed session loading

This commit is contained in:
Ferdinand Thiessen 2021-05-25 21:52:26 +02:00
parent fd918f5bb7
commit 979eab05af
1 changed files with 1 additions and 1 deletions

View File

@ -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) {