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) {
|
||||
sortTags(tags).forEach(tag => {
|
||||
if (tag || tags.length === 1) {
|
||||
children.push(tagLabel(tag, {link}));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
children.push(tagLabel());
|
||||
|
Reference in New Issue
Block a user