MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / hasDiff

Function hasDiff

frontend/src/webview-client/graph-diff.ts:92–102  ·  view source on GitHub ↗
(diff: GraphDiff & { workflows?: { added: any[]; removed: any[]; updated: any[] } })

Source from the content-addressed store, hash-verified

90}
91
92export function hasDiff(diff: GraphDiff & { workflows?: { added: any[]; removed: any[]; updated: any[] } }): boolean {
93 return diff.nodes.added.length > 0 ||
94 diff.nodes.removed.length > 0 ||
95 diff.nodes.updated.length > 0 ||
96 diff.edges.added.length > 0 ||
97 diff.edges.removed.length > 0 ||
98 diff.edges.updated.length > 0 ||
99 (diff.workflows?.added?.length ?? 0) > 0 ||
100 (diff.workflows?.removed?.length ?? 0) > 0 ||
101 (diff.workflows?.updated?.length ?? 0) > 0;
102}

Callers 1

setupMessageHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected