mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
emoji_picker: Clear search_results by assigning 0 to its length.
This will allow `search_results` to be `const`, which works around a future ESLint complaint. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
02004c9b0f
commit
ed607bee2c
@@ -203,7 +203,7 @@ function filter_emojis() {
|
||||
if (query !== "") {
|
||||
var categories = exports.complete_emoji_catalog;
|
||||
var search_terms = query.split(" ");
|
||||
search_results = [];
|
||||
search_results.length = 0;
|
||||
_.each(categories, function (category) {
|
||||
if (category.name === "Popular") {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user