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)); } }