Fix : remove min value for description field (#13587)

### What problem does this PR solve?

min value and message force users to input a descript in datasets. Also
had a wrong error message.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Idriss Sbaaoui
2026-03-13 13:11:54 +08:00
committed by GitHub
parent 71804bf5bc
commit ef94a9c291

View File

@@ -7,9 +7,7 @@ export const formSchema = z
name: z.string().min(1, {
message: 'Username must be at least 2 characters.',
}),
description: z.string().min(2, {
message: 'Username must be at least 2 characters.',
}),
description: z.string().optional(),
// avatar: z.instanceof(File),
avatar: z.any().nullish(),
permission: z.string().optional(),