From e1e46f0dff8a485db093572630e74c4a4ecc6968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 21 Mar 2019 19:40:10 +0100 Subject: [PATCH] FIX: topic with no tags --- app/assets/javascripts/discourse/models/topic.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/topic.js.es6 b/app/assets/javascripts/discourse/models/topic.js.es6 index 00ec3934e65..e769d7e87f1 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")