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.

compose_banner: Remove redundant `.remove()` in `topic_missing_error`.

Aman Agrawalbded9cc02b6f
diff --git a/web/src/compose_banner.ts b/web/src/compose_banner.ts
index 3f93e812834..b3b2fc8045b 100644
--- a/web/src/compose_banner.ts
+++ b/web/src/compose_banner.ts
@@ -223,9 +223,6 @@ export function cannot_send_direct_message_error(error_message: string): void {
}
export function topic_missing_error(empty_string_topic_display_name: string): void {
- // Remove any existing banners with this warning.
- $(`#compose_banners .${CSS.escape(CLASSNAMES.topic_missing)}`).remove();
-
const new_row_html = render_topics_required_error_banner({
banner_type: ERROR,
empty_string_topic_display_name,