mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
adding a check to prevent a console error due to null pointer
This commit is contained in:
@@ -12,7 +12,9 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', '
|
|||||||
else {
|
else {
|
||||||
// steps through the current tree of $state configurations, grabs default search params
|
// steps through the current tree of $state configurations, grabs default search params
|
||||||
defaults = _.find($state.$current.path, (step) => {
|
defaults = _.find($state.$current.path, (step) => {
|
||||||
return step.params.hasOwnProperty(`${$scope.iterator}_search`);
|
if(step && step.params && step.params.hasOwnProperty(`${$scope.iterator}_search`)){
|
||||||
|
return step.params.hasOwnProperty(`${$scope.iterator}_search`);
|
||||||
|
}
|
||||||
}).params[`${$scope.iterator}_search`].config.value;
|
}).params[`${$scope.iterator}_search`].config.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user