Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left sidebar: Fix exception when deleting last stream.
Harsh Srivastavacd1601a85852
diff --git a/static/js/stream_list.js b/static/js/stream_list.jsindex 3f3858bf874..0b921a509cb 100644--- a/static/js/stream_list.js+++ b/static/js/stream_list.js@@ -108,7 +108,9 @@ export function build_stream_list(force_rerender) {// which largely is a matter of arranging the individual rows in// the right order.const streams = stream_data.subscribed_stream_ids();+ const parent = $("#stream_filters");if (streams.length === 0) {+ parent.empty();return;}@@ -120,7 +122,6 @@ export function build_stream_list(force_rerender) {return;}- const parent = $("#stream_filters");const elems = [];function add_sidebar_li(stream_id) {