mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
eslint: Fix unicorn/explicit-length-check. (#32666)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -354,7 +354,7 @@ export class DropdownWidget {
|
||||
if (e.target === $search_input.get(0)) {
|
||||
// Select first item if in search input.
|
||||
first_item().trigger("click");
|
||||
} else if (list_items.length !== 0) {
|
||||
} else if (list_items.length > 0) {
|
||||
$(e.target).trigger("click");
|
||||
}
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user