MCPcopy Create free account
hub / github.com/simstudioai/sim / findChildBlocks

Function findChildBlocks

apps/sim/lib/workflows/sanitization/json-sanitizer.ts:476–480  ·  view source on GitHub ↗
(parentId: string)

Source from the content-addressed store, hash-verified

474
475 // Helper to find child blocks of a parent (loop/parallel container)
476 const findChildBlocks = (parentId: string): string[] => {
477 return Object.keys(state.blocks).filter(
478 (blockId) => state.blocks[blockId].data?.parentId === parentId
479 )
480 }
481
482 // Helper to recursively sanitize a block and its children
483 const sanitizeBlock = (blockId: string, block: BlockState): CopilotBlockState => {

Callers 1

sanitizeBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected