fix tag rendering bug

This commit is contained in:
hay-kot 2021-03-31 18:19:29 -08:00
commit 800b5e793e

View file

@ -32,7 +32,8 @@ export default {
methods: {
getSlug(name) {
if (this.category) {
return this.allCategories.filter(x => x.name == name)[0].slug;
const matches = this.allCategories.filter(x => x.name == name);
if (matches.length > 0) return matches[0].slug;
}
},
},