tsconfig: Enable noUncheckedIndexedAccess.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-05-23 15:02:38 -07:00
parent 4e91572c96
commit 804c3706ff
61 changed files with 210 additions and 205 deletions

View File

@@ -213,7 +213,7 @@ export function update_rendered_message_groups(
// the other code takes advantage of blocks beneath recipient bars.
for (const message_group of message_groups) {
const $elt = get_element(message_group);
const first_message = message_group.message_containers[0].msg;
const first_message = message_group.message_containers[0]!.msg;
const should_fade = compose_fade_helper.should_fade_message(first_message);
change_fade_state($elt, should_fade);
}