Fix return of promise.
This commit is contained in:
parent
f22af2977e
commit
499fc2c275
@ -91,7 +91,7 @@ accountantApp
|
||||
|
||||
account = angular.merge(account, $data);
|
||||
|
||||
account.$save().then(function(data) {
|
||||
return account.$save().then(function(data) {
|
||||
// Sort accounts by name.
|
||||
$scope.accounts.sort(function(a, b) {
|
||||
if(a.id && b.id) {
|
||||
|
Loading…
Reference in New Issue
Block a user