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.

zform: Inline now-pointless render_html function.

Tim Abbottae3b2f31c81d
diff --git a/web/src/zform.ts b/web/src/zform.ts
index 8fc6f9f83ac..542fa389688 100644
--- a/web/src/zform.ts
+++ b/web/src/zform.ts
@@ -80,13 +80,8 @@ export function render(opts: {$elem: JQuery; message: Message; widget_data: Widg
return $elem;
}
- function render_html(data: ZFormExtraData): void {
- if (data.type === "choices") {
- $outer_elem.html(make_choices(data).html());
- }
+ if (data_with_choices_with_idx.type === "choices") {
+ $outer_elem.html(make_choices(data_with_choices_with_idx).html());
}
-
- render_html(data_with_choices_with_idx);
-
return;
}