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
1 changed files with 5 additions and 2 deletions

View File

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