mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Only show tags that exist in the tags label
This commit is contained in:
parent
0d1d61922f
commit
537741dd5a
|
@ -10,7 +10,9 @@ export default function tagsLabel(tags, attrs) {
|
|||
|
||||
if (tags) {
|
||||
sortTags(tags).forEach(tag => {
|
||||
children.push(tagLabel(tag, {link}));
|
||||
if (tag || tags.length === 1) {
|
||||
children.push(tagLabel(tag, {link}));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
children.push(tagLabel());
|
||||
|
|
Loading…
Reference in New Issue
Block a user