From 896433300dba69b1c7eb805795a6832e14de7f6b Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Tue, 27 Jan 2015 15:42:53 -0500 Subject: [PATCH] Fix double modal issue on 401 error --- awx/ui/static/js/services/host-count-graph-data.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/js/services/host-count-graph-data.js b/awx/ui/static/js/services/host-count-graph-data.js index db447cc640..e81fd0fe14 100644 --- a/awx/ui/static/js/services/host-count-graph-data.js +++ b/awx/ui/static/js/services/host-count-graph-data.js @@ -35,9 +35,12 @@ function HostCountGraphData(Rest, getBasePath, processErrors, $q) { return $q.all({ license: getLicenseData(), hosts: getHostData() - }).catch(function (data, status) { - processErrors(null, data, status, null, { hdr: 'Error!', - msg: 'Failed to get: ' + url + ' GET returned: ' + status }); + }).catch(function (response) { + var errorMessage = 'Failed to get: ' + response.url + ' GET returned: ' + response.status; + processErrors(null, response.data, response.status, null, { hdr: 'Error!', + msg: errorMessage + }); + return response; }); } };