search: Match an empty array, not a null one
When the terms are missing, we pass an empty array, not a null one.
This commit is contained in:
parent
991179835e
commit
2cefc8be27
@ -492,7 +492,7 @@ const SearchResults = new Lang.Class({
|
||||
this._cancellable.cancel();
|
||||
this._cancellable.reset();
|
||||
|
||||
if (!terms) {
|
||||
if (terms.length == 0) {
|
||||
this._clearSearchTimeout();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user