[Search] Input checks
More checks to see if the input is empty before doing search computations.
This commit is contained in:
@@ -148,7 +148,7 @@ define(
|
||||
}
|
||||
|
||||
// If the user input is empty, we want to have no search results.
|
||||
if (searchTerm !== '') {
|
||||
if (searchTerm !== '' && searchTerm !== undefined) {
|
||||
// Process the search term
|
||||
searchTerm = processSearchTerm(searchTerm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user