mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
fix: account for array length (#4849)
Small fix to account for array length in conditional check
This commit is contained in:
parent
87a81120d2
commit
d3e01d84d9
@ -131,7 +131,9 @@ export const StrategyChange: VFC<{
|
|||||||
change.action === 'addStrategy' || change.action === 'updateStrategy';
|
change.action === 'addStrategy' || change.action === 'updateStrategy';
|
||||||
|
|
||||||
const featureStrategyVariantsDisplay =
|
const featureStrategyVariantsDisplay =
|
||||||
isStrategyAction && change.payload.variants ? (
|
isStrategyAction &&
|
||||||
|
change.payload.variants &&
|
||||||
|
change.payload.variants.length > 0 ? (
|
||||||
<StyledBox>
|
<StyledBox>
|
||||||
<StyledTypography>
|
<StyledTypography>
|
||||||
Updating feature variants to:
|
Updating feature variants to:
|
||||||
|
Loading…
Reference in New Issue
Block a user