From 2d04eac579756879290eac04c944b017b7360ce1 Mon Sep 17 00:00:00 2001 From: DominikNoga Date: Wed, 6 Nov 2024 12:35:59 +0100 Subject: [PATCH] AO-899: fixed offline messages counter --- .../adjustment-creation.controller.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/stock-adjustment-creation/adjustment-creation.controller.js b/src/stock-adjustment-creation/adjustment-creation.controller.js index 8bba446..f57ec27 100644 --- a/src/stock-adjustment-creation/adjustment-creation.controller.js +++ b/src/stock-adjustment-creation/adjustment-creation.controller.js @@ -849,7 +849,9 @@ } return $q.all(submitAdjustmentPromises).then(function() { - goToStockCardSummaries(); + return $q.resolve(function() { + goToStockCardSummaries(); + }()); }); } @@ -875,7 +877,9 @@ goToStockCardSummaries(); }); } else { - goToStockCardSummaries(); + return $q.resolve(function() { + goToStockCardSummaries(); + }()); } // ANGOLASUP-717: ends here }, function(errorResponse) { @@ -1301,4 +1305,4 @@ onInit(); } -})(); \ No newline at end of file +})();