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.

eslint: Fix unicorn/prefer-iterable-in-constructor.

Anders Kaseorge58166d3dd0a
diff --git a/web/src/stream_settings_ui.ts b/web/src/stream_settings_ui.ts
index 91d6ac6eb6d..fc524e3f21e 100644
--- a/web/src/stream_settings_ui.ts
+++ b/web/src/stream_settings_ui.ts
@@ -741,11 +741,7 @@ export function redraw_left_panel(left_panel_params = get_left_panel_params()):
// If we just re-built the DOM from scratch we wouldn't need
// all this hidden/notdisplayed logic.
- const hidden_ids = new Set();
-
- for (const stream_id of buckets.other) {
- hidden_ids.add(stream_id);
- }
+ const hidden_ids = new Set(buckets.other);
for (const row of $("#channels_overlay_container .stream-row")) {
const stream_id = stream_id_for_row(row);