Fix initialize of Budgets after login
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jan Bader 2022-02-23 23:03:31 +00:00
parent ddf51b5922
commit 635f4de402

View File

@ -36,8 +36,10 @@ export const useSessionStore = defineStore('session', {
this.Session = { this.Session = {
User: x.User, User: x.User,
Token: x.Token, Token: x.Token,
}, }
this.Budgets = x.Budgets; for (const budget of x.Budgets) {
this.Budgets.set(budget.ID, budget);
}
}, },
async login(login: any) { async login(login: any) {
const response = await POST("/user/login", JSON.stringify(login)); const response = await POST("/user/login", JSON.stringify(login));