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: return false for missing array item schema in isExpandable

Sushmithamallesh197c14c0dc73
diff --git a/docs/components/custom-schema-ui.tsx b/docs/components/custom-schema-ui.tsx
index 22bf8dffe..f0e751c7d 100644
--- a/docs/components/custom-schema-ui.tsx
+++ b/docs/components/custom-schema-ui.tsx
@@ -247,7 +247,7 @@ function isExpandable(
const itemType = schema.item.$type;
if (visited.has(itemType)) return false; // Circular ref - not expandable
const itemSchema = refs[itemType];
- if (!itemSchema) return true;
+ if (!itemSchema) return false;
return itemSchema.type !== 'primitive';
}
if ((schema.type === 'or' || schema.type === 'and') && schema.items.length > 0) {