From 11db5899b2d5c6cff7ffba2ebdc6bbc9c52f604e Mon Sep 17 00:00:00 2001 From: jaredevantabor Date: Tue, 20 Dec 2016 12:53:37 -0800 Subject: [PATCH] adding extra logic to resovle so that it will always return --- awx/ui/client/src/shared/stateDefinitions.factory.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/ui/client/src/shared/stateDefinitions.factory.js b/awx/ui/client/src/shared/stateDefinitions.factory.js index 7733cb78e7..34a507a40d 100644 --- a/awx/ui/client/src/shared/stateDefinitions.factory.js +++ b/awx/ui/client/src/shared/stateDefinitions.factory.js @@ -460,6 +460,9 @@ export default ['$injector', '$stateExtender', '$log', function($injector, $stat if($stateParams.hasOwnProperty('group_id')){ return GroupManageService.getInventorySource({ group: $stateParams.group_id }).then(res => res.data.results[0]); } + else{ + return null; + } }], Dataset: ['ListDefinition', 'QuerySet', '$stateParams', 'GetBasePath', '$interpolate', '$rootScope', (list, qs, $stateParams, GetBasePath, $interpolate, $rootScope) => {