added validation for bucket at least one bucket required
This commit is contained in:
parent
0ec3d0c3e3
commit
fc30db8532
@ -39,7 +39,7 @@ export const ContactSchema = z
|
||||
})
|
||||
)
|
||||
.min(1, { message: "At least one tag is required" }),
|
||||
bucketIds: z.array(z.string()).optional(),
|
||||
bucketIds: z.array(z.string()).min(1,{message:"At least one Label required"}),
|
||||
})
|
||||
|
||||
// .refine((data) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user