Fix: The dataset description should not be a required field. (#13655)

### What problem does this PR solve?

Fix: The dataset description should not be a required field.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2026-03-17 18:51:18 +08:00
committed by GitHub
parent ad6bdb5bfe
commit fc4f1e2488

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(),