fix: add null guard in generateSlug to prevent SSR crash on null tab titles
This commit is contained in:
@@ -41,7 +41,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
generateSlug: function (text) {
|
||||
return slugify(text, {
|
||||
return slugify(text ?? '', {
|
||||
lower: true,
|
||||
strict: true,
|
||||
locale: "ru",
|
||||
|
||||
Reference in New Issue
Block a user