diff --git a/awx/ui/static/js/shared/lodash-as-promised.js b/awx/ui/static/js/shared/lodash-as-promised.js index ef0f77029a..7316c0e021 100644 --- a/awx/ui/static/js/shared/lodash-as-promised.js +++ b/awx/ui/static/js/shared/lodash-as-promised.js @@ -35,7 +35,13 @@ function lodashAsPromised($q) { } function _then(promise, fn) { - return promise.then(fn); + return promise.then(function(value) { + if (_.isFunction(value.then)) { + return _then(value, fn); + } else { + return fn(value); + } + }); } function _catch(promise, fn) {