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 5ef8bed2b8
commit fba983f41d

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