mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
FIX: revert to using _.each (#6683)
Should be replaced with Object.keys variation when reproducible
This commit is contained in:
parent
964fd983b7
commit
ca84c06c59
@ -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 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user