mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
eslint: Fix @typescript-eslint/no-confusing-void-expression.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user