FIX: topic with no tags

FIX: topic with no tags

diff --git a/app/assets/javascripts/discourse/models/topic.js.es6 b/app/assets/javascripts/discourse/models/topic.js.es6
index 00ec393..e769d7e 100644
--- a/app/assets/javascripts/discourse/models/topic.js.es6
+++ b/app/assets/javascripts/discourse/models/topic.js.es6
@@ -227,7 +227,7 @@ const Topic = RestModel.extend({
 
   @computed("tags")
   tagClasses(tags) {
-    return tags.map(t => `tag-${t}`).join(" ");
+    return tags && tags.map(t => `tag-${t}`).join(" ");
   },
 
   @computed("url")

GitHub sha: e1e46f0d

1 Like