Rename item to account.
This commit is contained in:
parent
c6a406272f
commit
5960e9ee77
@ -51,9 +51,9 @@ export class AccountController {
|
||||
|
||||
load() {
|
||||
this.AccountService.query().subscribe(accounts => {
|
||||
this.accounts = accounts.map((item: Account) => {
|
||||
item.balances = this.AccountBalances.get({id: item.id});
|
||||
return item;
|
||||
this.accounts = accounts.map((account: Account) => {
|
||||
account.balances = this.AccountBalances.get({id: account.id});
|
||||
return account;
|
||||
})
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user