(subBlock: SubBlockConfig)
| 437 | * (credential fields hidden when the deployment provides them server-side) |
| 438 | */ |
| 439 | export 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 | } |
no test coverage detected