added validation for bucket at least one bucket required

This commit is contained in:
Pramod Mahajan 2025-05-28 11:57:48 +05:30
parent 0ec3d0c3e3
commit fc30db8532

View File

@ -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) => {