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:
@@ -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());
|
||||||
|
Reference in New Issue
Block a user