no slug error

This commit is contained in:
hay-kot 2021-03-31 18:20:59 -08:00
commit c504c793f9

View file

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