From 8cec7dd9171b1bf4a2b0f4742baffcac7871c7b7 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 30 May 2024 10:07:58 -0700 Subject: [PATCH] bootstrap_typeahead: Fix TypeScript noUncheckedIndexedAccess errors. Signed-off-by: Anders Kaseorg --- web/src/bootstrap_typeahead.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/bootstrap_typeahead.ts b/web/src/bootstrap_typeahead.ts index 7c82f52973..f9692720ef 100644 --- a/web/src/bootstrap_typeahead.ts +++ b/web/src/bootstrap_typeahead.ts @@ -471,7 +471,7 @@ export class Typeahead { let $next = $active.next(); if (!$next.length) { - $next = $(this.$menu.find("li")[0]); + $next = this.$menu.find("li").first(); } $next.addClass("active");