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

Function isSubBlockHidden

apps/sim/lib/workflows/subblocks/visibility.ts:439–443  ·  view source on GitHub ↗
(subBlock: SubBlockConfig)

Source from the content-addressed store, hash-verified

437 * (credential fields hidden when the deployment provides them server-side)
438 */
439export function isSubBlockHidden(subBlock: SubBlockConfig): boolean {
440 if (subBlock.hideWhenHosted && isHosted) return true
441 if (subBlock.hideWhenEnvSet && isTruthy(getEnv(subBlock.hideWhenEnvSet))) return true
442 return false
443}

Callers 7

getToolParametersConfigFunction · 0.90
getSubBlocksForToolInputFunction · 0.90
shouldSerializeSubBlockFunction · 0.90
useEditorSubblockLayoutFunction · 0.90
workflow-block.tsxFile · 0.90

Calls 2

isTruthyFunction · 0.90
getEnvFunction · 0.90

Tested by

no test coverage detected