diff --git a/src/composables/use-slugify.ts b/src/composables/use-slugify.ts index 1a47228de..fb727da1e 100644 --- a/src/composables/use-slugify.ts +++ b/src/composables/use-slugify.ts @@ -15,6 +15,9 @@ export default function useSlugify( ); const handleGenerateSlug = () => { + if (!source.value) { + return; + } target.value = slugify(source.value, { trim: true, });