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

Function isSubBlockFeatureEnabled

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

Source from the content-addressed store, hash-verified

425 * Check if a subblock is gated by a feature flag.
426 */
427export function isSubBlockFeatureEnabled(subBlock: SubBlockConfig): boolean {
428 if (!subBlock.showWhenEnvSet) return true
429 return isTruthy(getEnv(subBlock.showWhenEnvSet))
430}
431
432/**
433 * Check if a subblock should be hidden based on environment conditions.

Callers 8

isSubBlockVisibleFunction · 0.90
shouldSerializeSubBlockFunction · 0.90
PreviewEditorContentFunction · 0.90
useEditorSubblockLayoutFunction · 0.90
workflow-block.tsxFile · 0.90

Calls 2

isTruthyFunction · 0.90
getEnvFunction · 0.90

Tested by

no test coverage detected