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:
parent
87a81120d2
commit
d3e01d84d9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user