Fix sluggy on empty slugs

This commit is contained in:
2025-08-01 01:38:08 +02:00
parent 03527b2fe0
commit 13ad0eeb56
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ export function sluggy(object: {
id: number | string;
}) {
const { id, name, title } = object;
let string;
let string = '';
if (!!name && name.length > 0) {
string =