mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
no slug error
This commit is contained in:
parent
5c76e758b9
commit
c504c793f9
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getSlug(name) {
|
getSlug(name) {
|
||||||
|
if (!name) return;
|
||||||
if (this.category) {
|
if (this.category) {
|
||||||
const matches = this.allCategories.filter(x => x.name == name);
|
const matches = this.allCategories.filter(x => x.name == name);
|
||||||
if (matches.length > 0) return matches[0].slug;
|
if (matches.length > 0) return matches[0].slug;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue