FIX: Was showing two rows for the title always
This commit is contained in:
parent
d69b782737
commit
40c944cb36
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue