subject -> topic: Fix local vars in stream_list.

This commit is contained in:
Steve Howell 2018-11-13 15:23:44 +00:00 committed by Tim Abbott
parent 3a9c81ed8c
commit c6ad12d058
1 changed files with 5 additions and 5 deletions

View File

@ -315,9 +315,9 @@ exports.update_dom_with_unread_counts = function (counts) {
}); });
// counts.topic_count maps streams to hashes of topics to counts // counts.topic_count maps streams to hashes of topics to counts
counts.topic_count.each(function (subject_hash, stream_id) { counts.topic_count.each(function (topic_hash, stream_id) {
subject_hash.each(function (count, subject) { topic_hash.each(function (count, topic) {
topic_list.set_count(stream_id, subject, count); topic_list.set_count(stream_id, topic, count);
}); });
}); });
}; };
@ -371,8 +371,8 @@ exports.get_sidebar_stream_topic_info = function (filter) {
result.stream_id = stream_id; result.stream_id = stream_id;
var op_subject = filter.operands('topic'); var op_topic = filter.operands('topic');
result.topic_selected = op_subject.length === 1; result.topic_selected = op_topic.length === 1;
return result; return result;
}; };