mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 05:01:09 -02:30
fix for #4969, can't call trim of undefined
This commit is contained in:
@@ -201,7 +201,7 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', '
|
|||||||
origQueryset = _.clone(queryset);
|
origQueryset = _.clone(queryset);
|
||||||
|
|
||||||
// Remove leading/trailing whitespace if there is any
|
// Remove leading/trailing whitespace if there is any
|
||||||
terms = terms.trim();
|
terms = (terms) ? terms.trim() : "";
|
||||||
|
|
||||||
if(terms && terms !== '') {
|
if(terms && terms !== '') {
|
||||||
// Split the terms up
|
// Split the terms up
|
||||||
|
|||||||
Reference in New Issue
Block a user