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
Use index combined with $type for React keys to avoid duplicates when two union variants reference the same schema. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 4, 2026 at 13:41 UTC
75dc511233291d7356628224c908dbdb18e4d89f
1 file changed
+2
-2
docs/components/custom-schema-ui.tsx
+2
-2
@@ -126,8 +126,8 @@ function SchemaContent({
126
return (
127
<div className="space-y-2">
128
<p className="text-xs text-fd-muted-foreground">{label}</p>
129
- {schema.items.map((item) => (
130
- <div key={item.$type} className="pl-3 border-l-2 border-fd-border">
129
+ {schema.items.map((item, i) => (
130
+ <div key={`${item.$type}-${i}`} className="pl-3 border-l-2 border-fd-border">
131
<span className="text-sm font-medium">{item.name}</span>
132
{isExpandable(refs[item.$type], refs) && (
133
<ExpandableContent $type={item.$type} parentPath={parentPath} />