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

Function resolveSelectorForSubBlock

apps/sim/hooks/selectors/resolution.ts:10–23  ·  view source on GitHub ↗
(
  subBlock: SubBlockConfig,
  context: SelectorContext
)

Source from the content-addressed store, hash-verified

8}
9
10export function resolveSelectorForSubBlock(
11 subBlock: SubBlockConfig,
12 context: SelectorContext
13): SelectorResolution | null {
14 if (!subBlock.selectorKey) return null
15 return {
16 key: subBlock.selectorKey,
17 context: {
18 ...context,
19 mimeType: subBlock.mimeType ?? context.mimeType,
20 },
21 allowSearch: subBlock.selectorAllowSearch ?? true,
22 }
23}

Callers 2

resolveValueForDisplayFunction · 0.90
useSelectorDisplayNameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected