FIX: 'none' tag page would not load

This commit is contained in:
David Taylor 2018-10-10 16:00:33 +01:00
parent 94b115f7d9
commit 98211f945f

View File

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