@devries-cameron20 / composio Mirror · read-only / commits / 16eaf39ad
Fork 0

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

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 03:15 UTC

docs: fix React state mutation in managed-auth-list

Spread array before sorting to avoid mutating state directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 9, 2026 at 20:21 UTC 16eaf39ad55336bd568497f3d755db7565534b78
1 file changed +1 -1
docs/components/toolkits/managed-auth-list.tsx
+1 -1
@@ -116,7 +116,7 @@ export function ManagedAuthList() {
116 const list = s
117 ? data.filter((t) => t.name.toLowerCase().includes(s) || t.slug.toLowerCase().includes(s))
118 : data;
119 - return list.sort((a, b) => a.name.trim().localeCompare(b.name.trim()));
119 + return [...list].sort((a, b) => a.name.trim().localeCompare(b.name.trim()));
120 }, [data, deferredSearch]);
121
122 const managed = useMemo(