subs: Harden subscriber count code path against bugs.

This expectOne() should catch some classes of bugs here.
This commit is contained in:
Tim Abbott 2018-03-10 09:48:10 -08:00
parent 12db219305
commit 87f1516f5d
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ exports.rerender_subscribers_count = function (sub, just_subscribed) {
var sub_count = templates.render("subscription_count", sub);
stream_row.find('.subscriber-count').expectOne().html(sub_count);
} else {
stream_row.find(".subscriber-count-text").text(sub.subscriber_count);
stream_row.find(".subscriber-count-text").expectOne().text(sub.subscriber_count);
}
};