2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Was showing two rows for the title always

This commit is contained in:
Robin Ward 2016-12-15 10:47:43 -05:00
parent d69b782737
commit 40c944cb36

View file

@ -53,9 +53,12 @@ export default createWidget('header-topic-info', {
} }
} }
if (this.siteSettings.topic_featured_link_enabled) { 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)); title.push(h('div.topic-header-extra', extra));
} }
} }