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:
@@ -492,7 +492,7 @@ const SearchResults = new Lang.Class({
|
|||||||
this._cancellable.cancel();
|
this._cancellable.cancel();
|
||||||
this._cancellable.reset();
|
this._cancellable.reset();
|
||||||
|
|
||||||
if (!terms) {
|
if (terms.length == 0) {
|
||||||
this._clearSearchTimeout();
|
this._clearSearchTimeout();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user