Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): use unique React keys for union type items

Sushmithamallesh75dc51123329
diff --git a/docs/components/custom-schema-ui.tsx b/docs/components/custom-schema-ui.tsx
index 588411b1e..c178bf750 100644
--- a/docs/components/custom-schema-ui.tsx
+++ b/docs/components/custom-schema-ui.tsx
@@ -126,8 +126,8 @@ function SchemaContent({
return (
<div className="space-y-2">
<p className="text-xs text-fd-muted-foreground">{label}</p>
- {schema.items.map((item) => (
- <div key={item.$type} className="pl-3 border-l-2 border-fd-border">
+ {schema.items.map((item, i) => (
+ <div key={`${item.$type}-${i}`} className="pl-3 border-l-2 border-fd-border">
<span className="text-sm font-medium">{item.name}</span>
{isExpandable(refs[item.$type], refs) && (
<ExpandableContent $type={item.$type} parentPath={parentPath} />