Handle EditAccount in Store
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user