From bdc7772bab1abc8cc8dfd26c847e5eeb212aa845 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 23 Oct 2017 21:32:52 -0700 Subject: [PATCH] subs: Fix bug with invalid access to stream IDs. `sub.id` isn't a valid field; it's `sub.stream_id`. --- static/js/subs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/subs.js b/static/js/subs.js index db1a02555c..1c60a67d36 100644 --- a/static/js/subs.js +++ b/static/js/subs.js @@ -223,7 +223,7 @@ exports.update_settings_for_subscribed = function (sub) { } var active_stream = exports.active_stream(); - if (active_stream.stream_id === sub.id) { + if (active_stream.stream_id === sub.stream_id) { stream_edit.rerender_subscribers_list(sub); } @@ -243,7 +243,7 @@ exports.update_settings_for_unsubscribed = function (sub) { stream_edit.hide_sub_settings(sub); var active_stream = exports.active_stream(); - if (active_stream.stream_id === sub.id) { + if (active_stream.stream_id === sub.stream_id) { stream_edit.rerender_subscribers_list(sub); }