Fix promise error handling.
This commit is contained in:
parent
d91089238d
commit
d522aaad45
@ -121,6 +121,7 @@ export class AccountListComponent {
|
||||
|
||||
modal.result.then((account: Account) => {
|
||||
this.delete(account);
|
||||
}, (reason) => function(reason) {
|
||||
});
|
||||
};
|
||||
|
||||
@ -157,6 +158,7 @@ export class AccountListComponent {
|
||||
modal.result.then((account: Account) => {
|
||||
this.Logger.log("Modal closed => save account", account);
|
||||
this.save(account);
|
||||
}, (reason) => function(reason) {
|
||||
});
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user