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 city: z
.array( .array(
z.object({ 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: [ cities: [
@ -78,10 +78,10 @@ export default {
city: z city: z
.array( .array(
z.object({ 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: [ cities: [
@ -132,10 +132,10 @@ const resolver = ref(zodResolver(
city: z city: z
.array( .array(
z.object({ 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([ const cities = ref([