Skip to content

Commit 9c737a1

Browse files
committed
Insight Playground: Show error when no chains selected (#6654)
1 parent 646a5a3 commit 9c737a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/playground-web/src/app/insight/[blueprint_slug]/blueprint-playground.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ function openAPIV3ParamToZodFormSchema(
799799

800800
if (itemSchema) {
801801
return isRequired
802-
? z.array(itemSchema)
802+
? z.array(itemSchema).min(1, { message: "Required" })
803803
: z.array(itemSchema).optional();
804804
}
805805
}

0 commit comments

Comments
 (0)