MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toggleGroup

Function toggleGroup

packages/react/src/components/tool-tree.tsx:505–512  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

503 }, [tree, openSet]);
504
505 const toggleGroup = (path: string) => {
506 setManualOpen((prev) => {
507 const next = new Set(prev);
508 if (next.has(path)) next.delete(path);
509 else next.add(path);
510 return next;
511 });
512 };
513
514 return (
515 <>

Callers 1

ToolTreeBodyFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected