File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ const AgentChildrenGrid = memo(
4949 [ depth ] ,
5050 )
5151
52+ const subGroups = useMemo (
53+ ( ) => splitByAgentSize ( agentChildren , ( m ) => m . agent ?. agentType ?? '' ) ,
54+ [ agentChildren ] ,
55+ )
56+
5257 if ( agentChildren . length === 0 ) return null
5358
5459 if ( depth >= MAX_AGENT_DEPTH ) {
@@ -70,11 +75,6 @@ const AgentChildrenGrid = memo(
7075 < text fg = { theme ?. error } > Error rendering agent children</ text >
7176 )
7277
73- const subGroups = useMemo (
74- ( ) => splitByAgentSize ( agentChildren , ( m ) => m . agent ?. agentType ?? '' ) ,
75- [ agentChildren ] ,
76- )
77-
7878 return (
7979 < ErrorBoundary fallback = { errorFallback } componentName = "AgentChildrenGrid" >
8080 < box style = { { flexDirection : 'column' , gap : 0 , width : '100%' } } >
You can’t perform that action at this time.
0 commit comments