1
0
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:
Youssef Khedher 2021-10-14 18:49:58 +01:00 committed by GitHub
parent e9c5412b04
commit bbf06725a3

View File

@ -146,7 +146,7 @@ const FeatureViewEnvironment: FC<IFeatureViewEnvironmentProps> = ({
</div> </div>
<ConditionallyRender <ConditionallyRender
condition={currentEnv.strategies.length > 0} condition={currentEnv?.strategies?.length > 0}
show={<div className={styles.body}>{children}</div>} show={<div className={styles.body}>{children}</div>}
/> />