mirror of https://github.com/zulip/zulip.git
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 {
|
function first_item(): JQuery {
|
||||||
const first_item = list_items[0];
|
const first_item = list_items[0];
|
||||||
|
assert(first_item !== undefined);
|
||||||
return $popper.find(`.list-item[data-unique-id="${first_item.unique_id}"]`);
|
return $popper.find(`.list-item[data-unique-id="${first_item.unique_id}"]`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue