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