1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Only show tags that exist in the tags label

This commit is contained in:
Toby Zerner
2015-06-19 17:28:21 +09:30
parent 0d1d61922f
commit 537741dd5a

View File

@@ -10,7 +10,9 @@ export default function tagsLabel(tags, attrs) {
if (tags) { if (tags) {
sortTags(tags).forEach(tag => { sortTags(tags).forEach(tag => {
children.push(tagLabel(tag, {link})); if (tag || tags.length === 1) {
children.push(tagLabel(tag, {link}));
}
}); });
} else { } else {
children.push(tagLabel()); children.push(tagLabel());