From 499fc2c27522b55da82dd90a16f89d0b477c8269 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 19 Aug 2015 18:12:41 +0200 Subject: [PATCH] Fix return of promise. --- accountant/frontend/static/js/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {