mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
correct build failure
This commit is contained in:
parent
f74c21d2e7
commit
5a9517af5e
|
@ -137,10 +137,13 @@ const Category = RestModel.extend({
|
|||
}.property('topics'),
|
||||
|
||||
unreadTopics: function() {
|
||||
// TODO this is somehow null for /categories page anon
|
||||
if (!this.topicTrackingState) { return 0; }
|
||||
return this.topicTrackingState.countUnread(this.get('id'));
|
||||
}.property('topicTrackingState.messageCount'),
|
||||
|
||||
newTopics: function() {
|
||||
if (!this.topicTrackingState) { return 0; }
|
||||
return this.topicTrackingState.countNew(this.get('id'));
|
||||
}.property('topicTrackingState.messageCount'),
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user