Handle EditAccount in Store
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2022-02-24 22:12:35 +00:00
parent 466df523ab
commit ab07d3472d
2 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,9 @@ export const useBudgetsStore = defineStore('budget', {
async FetchBudget(budgetid: string) {
const result = await GET("/budget/" + budgetid);
const response = await result.json();
this.MergeBudgetingData(response);
},
MergeBudgetingData(response : any) {
for (const account of response.Accounts || []) {
useAccountStore().Accounts.set(account.ID, account);
}