diff --git a/accountant/frontend/static/js/accounts.js b/accountant/frontend/static/js/accounts.js index 346171c..794d274 100644 --- a/accountant/frontend/static/js/accounts.js +++ b/accountant/frontend/static/js/accounts.js @@ -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) {