diff --git a/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6 b/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6 index 87c256e202e..9a4e9d374f8 100644 --- a/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6 +++ b/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6 @@ -236,6 +236,7 @@ const TopicTrackingState = Discourse.Model.extend({ }, countNew(category_id) { + if (this.tooManyTracked()) { return(0); } return _.chain(this.states) .where(isNew) .where(topic => topic.category_id === category_id || !category_id) @@ -256,6 +257,7 @@ const TopicTrackingState = Discourse.Model.extend({ }, countUnread(category_id) { + if (this.tooManyTracked()) { return(0); } return _.chain(this.states) .where(isUnread) .where(topic => topic.category_id === category_id || !category_id) @@ -264,6 +266,7 @@ const TopicTrackingState = Discourse.Model.extend({ }, countCategory(category_id) { + if (this.tooManyTracked()) { return(0); } let sum = 0; _.each(this.states, function(topic){ if (topic.category_id === category_id) {