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) => {