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

Function getSubBlockValue

apps/sim/lib/workflows/schedules/utils.ts:118–121  ·  view source on GitHub ↗
(block: BlockState, id: string)

Source from the content-addressed store, hash-verified

116 * Safely extract a value from a block's subBlocks
117 */
118export function getSubBlockValue(block: BlockState, id: string): string {
119 const subBlock = block.subBlocks[id] as SubBlockValue | undefined
120 return subBlock?.value || ''
121}
122
123/**
124 * Parse and extract hours and minutes from a time string

Callers 5

utils.test.tsFile · 0.90
hasValidScheduleConfigFunction · 0.90
validateScheduleBlockFunction · 0.90
calculateNextRunTimeFunction · 0.90
getScheduleTimeValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected