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

@@ -155,7 +155,9 @@ export function set_up(): void {
confirm_dialog.launch({
html_heading: $t_html({defaultMessage: "Delete data export?"}),
html_body,
on_click: () => dialog_widget.submit_api_request(channel.del, url),
on_click() {
dialog_widget.submit_api_request(channel.del, url);
},
loading_spinner: true,
});
});