FIX: revert to using _.each (#6683)

Should be replaced with Object.keys variation when reproducible
This commit is contained in:
Joffrey JAFFEUX 2018-11-27 15:55:56 +01:00 committed by GitHub
parent 964fd983b7
commit ca84c06c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ const TopicTrackingState = Discourse.Model.extend({
countCategory(category_id) { countCategory(category_id) {
let sum = 0; let sum = 0;
this.states.forEach(topic => { _.each(this.states, topic => {
if (topic.category_id === category_id && !topic.deleted) { if (topic.category_id === category_id && !topic.deleted) {
sum += sum +=
topic.last_read_post_number === null || topic.last_read_post_number === null ||