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 stream error.

Aman Agrawal2f6530f0276f
diff --git a/web/src/compose_banner.ts b/web/src/compose_banner.ts
index b3b2fc8045b..268b547b4a4 100644
--- a/web/src/compose_banner.ts
+++ b/web/src/compose_banner.ts
@@ -233,9 +233,6 @@ export function topic_missing_error(empty_string_topic_display_name: string): vo
}
export function show_stream_does_not_exist_error(stream_name: string): void {
- // Remove any existing banners with this warning.
- $(`#compose_banners .${CSS.escape(CLASSNAMES.stream_does_not_exist)}`).remove();
-
const new_row_html = render_stream_does_not_exist_error({
banner_type: ERROR,
channel_name: stream_name,