Rename item to account.

This commit is contained in:
Alexis Lahouze 2017-07-14 10:25:33 +02:00
parent c6a406272f
commit 5960e9ee77

View File

@ -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;
})
});
};