Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_widget: Fix TypeScript noUncheckedIndexedAccess errors.
Anders Kaseorgbeef5d259b90
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.tsindex 68d8f87455d..331c90fd6ef 100644--- a/web/src/dropdown_widget.ts+++ b/web/src/dropdown_widget.ts@@ -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}"]`);}