We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04cac1a commit 87c93c5Copy full SHA for 87c93c5
frontend/src/helpers/forceSlug.ts
@@ -10,10 +10,7 @@ export function forceSlug(
10
const newFormData = { ...formData };
11
12
for (const field of tryFields) {
13
- if (
14
- typeof newFormData[field] === "string" &&
15
- newFormData[field].length > 0
16
- ) {
+ if (typeof newFormData[field] === "string" && newFormData[field]) {
17
const slug = slugify(newFormData[field]);
18
newFormData.slug = slug;
19
break;
0 commit comments