Update MultiSelect Form doc

pull/6632/head
Mert Sincan 2024-10-22 09:38:55 +01:00
parent c1db521ed9
commit 6fded55811
1 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,13 @@ export default {
],
resolver: null,
schema: z.object({
city: z.array(z.object()).min(1, { message: 'At least one city should be selected.' })
city: z
.array(
z.object({
name: z.string().min(1, 'Option cannot be empty')
})
)
.min(1, 'At least one city should be selected.')
}),
code: {
basic: `