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.

stream-settings: Fix stream privacy update event handling.

Sahil Batrac313a85e2549
diff --git a/web/src/stream_settings_ui.js b/web/src/stream_settings_ui.js
index a80f089334f..7af3e080a0f 100644
--- a/web/src/stream_settings_ui.js
+++ b/web/src/stream_settings_ui.js
@@ -151,7 +151,7 @@ export function update_stream_privacy(slim_sub, values) {
// Update UI elements
update_left_panel_row(sub);
- if (narrow_state.stream_sub().stream_id === sub.stream_id) {
+ if (narrow_state.stream_sub()?.stream_id === sub.stream_id) {
// Rerender message list if we are narrowed to the stream.
message_lists.current?.rerender();
}