mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: add ? to handle undefined for currentEnv (#431)
This commit is contained in:
parent
e9c5412b04
commit
bbf06725a3
@ -146,7 +146,7 @@ const FeatureViewEnvironment: FC<IFeatureViewEnvironmentProps> = ({
|
||||
</div>
|
||||
|
||||
<ConditionallyRender
|
||||
condition={currentEnv.strategies.length > 0}
|
||||
condition={currentEnv?.strategies?.length > 0}
|
||||
show={<div className={styles.body}>{children}</div>}
|
||||
/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user