MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveBlockName

Function resolveBlockName

apps/sim/lib/workflows/comparison/compare.ts:289–292  ·  view source on GitHub ↗
(blockId: string)

Source from the content-addressed store, hash-verified

287 const previousEdgeSet = new Set(previousEdges.map(normalizedStringify))
288
289 const resolveBlockName = (blockId: string): string => {
290 const block = currentBlocks[blockId] || previousBlocks[blockId]
291 return block?.name || block?.type || blockId
292 }
293
294 for (const edgeStr of currentEdgeSet) {
295 if (!previousEdgeSet.has(edgeStr)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected