From fc30db8532fcfb2c279ef401b7429b165273ca5c Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Wed, 28 May 2025 11:57:48 +0530 Subject: [PATCH] added validation for bucket at least one bucket required --- src/components/Directory/DirectorySchema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Directory/DirectorySchema.js b/src/components/Directory/DirectorySchema.js index 1b61c4ac..915cf10a 100644 --- a/src/components/Directory/DirectorySchema.js +++ b/src/components/Directory/DirectorySchema.js @@ -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) => {