diff --git a/web/src/stores/session.ts b/web/src/stores/session.ts index 49a2807..cf61e2f 100644 --- a/web/src/stores/session.ts +++ b/web/src/stores/session.ts @@ -36,8 +36,10 @@ export const useSessionStore = defineStore('session', { this.Session = { User: x.User, Token: x.Token, - }, - this.Budgets = x.Budgets; + } + for (const budget of x.Budgets) { + this.Budgets.set(budget.ID, budget); + } }, async login(login: any) { const response = await POST("/user/login", JSON.stringify(login));