adding extra logic to resovle so that it will always return

This commit is contained in:
jaredevantabor
2016-12-20 12:53:37 -08:00
parent 2328d513d0
commit 11db5899b2

View File

@@ -460,6 +460,9 @@ export default ['$injector', '$stateExtender', '$log', function($injector, $stat
if($stateParams.hasOwnProperty('group_id')){ if($stateParams.hasOwnProperty('group_id')){
return GroupManageService.getInventorySource({ group: $stateParams.group_id }).then(res => res.data.results[0]); return GroupManageService.getInventorySource({ group: $stateParams.group_id }).then(res => res.data.results[0]);
} }
else{
return null;
}
}], }],
Dataset: ['ListDefinition', 'QuerySet', '$stateParams', 'GetBasePath', '$interpolate', '$rootScope', Dataset: ['ListDefinition', 'QuerySet', '$stateParams', 'GetBasePath', '$interpolate', '$rootScope',
(list, qs, $stateParams, GetBasePath, $interpolate, $rootScope) => { (list, qs, $stateParams, GetBasePath, $interpolate, $rootScope) => {