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

Function getDependsOnFields

apps/sim/blocks/utils.ts:104–108  ·  view source on GitHub ↗
(dependsOn: SubBlockConfig['dependsOn'])

Source from the content-addressed store, hash-verified

102 * Handles both simple array format and object format with all/any fields.
103 */
104export function getDependsOnFields(dependsOn: SubBlockConfig['dependsOn']): string[] {
105 if (!dependsOn) return []
106 if (Array.isArray(dependsOn)) return dependsOn
107 return [...(dependsOn.all || []), ...(dependsOn.any || [])]
108}
109
110/**
111 * Finds subblocks that depend on a changed field, accounting for canonical pairs.

Callers 9

emitAnchoredDependentsFunction · 0.90
utils.test.tsFile · 0.90
ConnectorSelectorFieldFunction · 0.90
getDependencyLabelFunction · 0.90
useConnectorConfigFieldsFunction · 0.90
combobox.tsxFile · 0.90
dropdown.tsxFile · 0.90
workflow-block.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected