diff --git a/awx/ui/client/src/shared/smart-search/smart-search.controller.js b/awx/ui/client/src/shared/smart-search/smart-search.controller.js index 41b4071db2..d3b1d216f1 100644 --- a/awx/ui/client/src/shared/smart-search/smart-search.controller.js +++ b/awx/ui/client/src/shared/smart-search/smart-search.controller.js @@ -12,7 +12,9 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', ' else { // steps through the current tree of $state configurations, grabs default search params 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; }