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.

resize: Fix buggy check for #stream_settings element.

evykassirerd913ab1e3c42
diff --git a/web/src/resize.js b/web/src/resize.js
index a9865a2f687..cbf08ae62c8 100644
--- a/web/src/resize.js
+++ b/web/src/resize.js
@@ -131,7 +131,7 @@ export function resize_stream_subscribers_list() {
// This avoids the stream settings from overflowing the container and
// having a scroll bar.
- if (!$("#stream_settings").length === 1) {
+ if ($("#stream_settings").length === 0) {
// Don't run if stream settings (like $subscriptions_info below) is not open.
return;
}