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