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

This commit is contained in:
jacob1123 committed 2022-02-23 23:03:31 +00:00
1 parent ddf51b5922
commit 635f4de402
1 file changed
+4 -2
+4 -2
View File
@@ -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));