MCPcopy Create free account
hub / github.com/Zleap-AI/SAG / resetGraph

Function resetGraph

web/src/components/ProjectGraphFlow.tsx:257–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 }
256
257 function resetGraph() {
258 shouldFitViewRef.current = true;
259 setExpandedEntityIds(new Set(props.graph.entities[0] ? [props.graph.entities[0].id] : []));
260 setExpandedEventIds(new Set());
261 setSelectedNodeId(null);
262 }
263
264 function expandAll() {
265 shouldFitViewRef.current = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected