web: Avoid several unchecked TypeScript casts.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-09-08 13:52:44 -07:00
committed by Tim Abbott
parent 4650b789ce
commit 3d7b9e622d
7 changed files with 13 additions and 11 deletions

View File

@@ -129,7 +129,7 @@ function render_attachments_ui(): void {
set_upload_space_stats();
const $uploaded_files_table = $("#uploaded_files_table").expectOne();
const $search_input = $("#upload_file_search");
const $search_input = $<HTMLInputElement>("input#upload_file_search");
ListWidget.create<Attachment>($uploaded_files_table, attachments, {
name: "uploaded-files-list",