From 9c737a1905c61abfa0c486f5d23511a724a2f7ed Mon Sep 17 00:00:00 2001 From: MananTank Date: Fri, 4 Apr 2025 19:59:22 +0000 Subject: [PATCH] Insight Playground: Show error when no chains selected (#6654) --- .../insight/[blueprint_slug]/blueprint-playground.client.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/playground-web/src/app/insight/[blueprint_slug]/blueprint-playground.client.tsx b/apps/playground-web/src/app/insight/[blueprint_slug]/blueprint-playground.client.tsx index 20f5b478b90..23d902c05ad 100644 --- a/apps/playground-web/src/app/insight/[blueprint_slug]/blueprint-playground.client.tsx +++ b/apps/playground-web/src/app/insight/[blueprint_slug]/blueprint-playground.client.tsx @@ -799,7 +799,7 @@ function openAPIV3ParamToZodFormSchema( if (itemSchema) { return isRequired - ? z.array(itemSchema) + ? z.array(itemSchema).min(1, { message: "Required" }) : z.array(itemSchema).optional(); } }