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