MultiSelect form updates
parent
d4283a7fdf
commit
2031423af8
|
@ -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([
|
||||||
|
|
Loading…
Reference in New Issue