1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02: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>
<ConditionallyRender
condition={currentEnv.strategies.length > 0}
condition={currentEnv?.strategies?.length > 0}
show={<div className={styles.body}>{children}</div>}
/>