MultiSelect form updates

pull/6632/head
tugcekucukoglu 2024-10-23 09:36:48 +03:00
parent d4283a7fdf
commit 2031423af8
1 changed files with 6 additions and 6 deletions

View File

@ -27,10 +27,10 @@ export default {
city: z
.array(
z.object({
name: z.string().min(1, 'Option cannot be empty')
name: z.string().min(1, 'City required.')
})
)
.min(1, 'At least one city should be selected.')
.min(1, 'City required.')
})
),
cities: [
@ -78,10 +78,10 @@ export default {
city: z
.array(
z.object({
name: z.string().min(1, 'Option cannot be empty')
name: z.string().min(1, 'City required.')
})
)
.min(1, 'At least one city should be selected.')
.min(1, 'City required.')
})
),
cities: [
@ -132,10 +132,10 @@ const resolver = ref(zodResolver(
city: z
.array(
z.object({
name: z.string().min(1, 'Option cannot be empty')
name: z.string().min(1, 'City required.')
})
)
.min(1, 'At least one city should be selected.')
.min(1, 'City required.')
})
));
const cities = ref([