added validation for bucket at least one bucket required
This commit is contained in:
parent
5ef8bed2b8
commit
fba983f41d
@ -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