mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix tag rendering bug
This commit is contained in:
parent
12b93058f8
commit
800b5e793e
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
getSlug(name) {
|
getSlug(name) {
|
||||||
if (this.category) {
|
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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue