From 98211f945fcd7c1cc290459b12c6485c12440681 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 10 Oct 2018 16:00:33 +0100 Subject: [PATCH] FIX: 'none' tag page would not load --- app/assets/javascripts/discourse/routes/tags-show.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/routes/tags-show.js.es6 b/app/assets/javascripts/discourse/routes/tags-show.js.es6 index 2bd25671571..72a02c2ed51 100644 --- a/app/assets/javascripts/discourse/routes/tags-show.js.es6 +++ b/app/assets/javascripts/discourse/routes/tags-show.js.es6 @@ -102,7 +102,9 @@ export default Discourse.Route.extend({ params, {} ).then(list => { - tag.set("id", list.topic_list.tags[0].name); // Update name of tag (case might be different) + if (list.topic_list.tags) { + tag.set("id", list.topic_list.tags[0].name); // Update name of tag (case might be different) + } controller.setProperties({ list: list, canCreateTopic: list.get("can_create_topic"),