1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

fix: account for array length (#4849)

Small fix to account for array length in conditional check
This commit is contained in:
Fredrik Strand Oseberg 2023-09-27 15:12:01 +02:00 committed by GitHub
parent 87a81120d2
commit d3e01d84d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,9 @@ export const StrategyChange: VFC<{
change.action === 'addStrategy' || change.action === 'updateStrategy';
const featureStrategyVariantsDisplay =
isStrategyAction && change.payload.variants ? (
isStrategyAction &&
change.payload.variants &&
change.payload.variants.length > 0 ? (
<StyledBox>
<StyledTypography>
Updating feature variants to: