correct build failure

This commit is contained in:
Sam 2015-09-21 10:57:37 +10:00
parent f74c21d2e7
commit 5a9517af5e

View File

@ -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'),