Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ui_report: Fix inaccurate annotations for generic_embed_error parameter.

afeefuddin49c4e5ec4449
diff --git a/web/src/ui_report.ts b/web/src/ui_report.ts
index a00bfbcd93e..c20999cf6ea 100644
--- a/web/src/ui_report.ts
+++ b/web/src/ui_report.ts
@@ -55,7 +55,7 @@ export function success(response_html: string, $status_box: JQuery, remove_after
message(response_html, $status_box, "alert-success", remove_after);
}
-export function generic_embed_error(error_html: string, remove_after: number): void {
+export function generic_embed_error(error_html: string, remove_after?: number): void {
const $alert = $("<div>").addClass(["alert", "home-error-bar", "show"]);
const $exit = $("<div>").addClass("exit");