mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
dropdown_widget: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
7303851fd5
commit
beef5d259b
@ -243,6 +243,7 @@ export class DropdownWidget {
|
||||
|
||||
function first_item(): JQuery {
|
||||
const first_item = list_items[0];
|
||||
assert(first_item !== undefined);
|
||||
return $popper.find(`.list-item[data-unique-id="${first_item.unique_id}"]`);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user