From 40c944cb36ef239cf9db1539174cbd005eaddba2 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 15 Dec 2016 10:47:43 -0500 Subject: [PATCH] FIX: Was showing two rows for the title always --- .../javascripts/discourse/widgets/header-topic-info.js.es6 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/header-topic-info.js.es6 b/app/assets/javascripts/discourse/widgets/header-topic-info.js.es6 index a3d5ad585d7..20045a93718 100644 --- a/app/assets/javascripts/discourse/widgets/header-topic-info.js.es6 +++ b/app/assets/javascripts/discourse/widgets/header-topic-info.js.es6 @@ -53,9 +53,12 @@ export default createWidget('header-topic-info', { } } if (this.siteSettings.topic_featured_link_enabled) { - extra.push(topicFeaturedLinkNode(attrs.topic)); + const featured = topicFeaturedLinkNode(attrs.topic); + if (featured) { + extra.push(featured); + } } - if (extra) { + if (extra.length) { title.push(h('div.topic-header-extra', extra)); } }