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

Function findChildNodes

apps/sim/stores/workflows/workflow/utils.ts:144–148  ·  view source on GitHub ↗
(containerId: string, blocks: Record<string, BlockState>)

Source from the content-addressed store, hash-verified

142 * @returns Array of node IDs that are direct children of this container
143 */
144export function findChildNodes(containerId: string, blocks: Record<string, BlockState>): string[] {
145 return Object.values(blocks)
146 .filter((block) => block.data?.parentId === containerId)
147 .map((block) => block.id)
148}
149
150/**
151 * Find all descendant nodes, including children, grandchildren, etc.

Callers 2

convertLoopBlockToLoopFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected