eslint: Fix @typescript-eslint/no-confusing-void-expression.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-12-21 16:00:27 -08:00
parent 3fde4f977d
commit 6368cf17cb
16 changed files with 66 additions and 40 deletions

View File

@@ -99,8 +99,9 @@ function delete_attachments(attachment: string, file_name: string): void {
html_submit_button: $t_html({defaultMessage: "Delete"}),
id: "confirm_delete_file_modal",
focus_submit_on_open: true,
on_click: () =>
dialog_widget.submit_api_request(channel.del, "/json/attachments/" + attachment),
on_click() {
dialog_widget.submit_api_request(channel.del, "/json/attachments/" + attachment);
},
loading_spinner: true,
});
}