mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix react key warning
This commit is contained in:
parent
1620d72c8f
commit
6bf05d89e7
@ -4,9 +4,7 @@ export const useStyles = makeStyles()(theme => ({
|
||||
popoverPaper: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
// alignItems: 'flex-start',
|
||||
padding: theme.spacing(6),
|
||||
// maxWidth: '728px',
|
||||
width: 728,
|
||||
maxWidth: '100%',
|
||||
height: 'auto',
|
||||
|
@ -25,7 +25,7 @@ export const PlaygroundResultFeatureStrategyList = ({
|
||||
show={
|
||||
<Alert severity={'info'} color={'info'}>
|
||||
If environment would be enabled then this feature would
|
||||
be {feature.strategies.result ? 'TRUE' : 'FALSE'} and
|
||||
be {feature.strategies?.result ? 'TRUE' : 'FALSE'} and
|
||||
the strategies would evaluate like this:{' '}
|
||||
</Alert>
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { Fragment } from 'react';
|
||||
import { Alert, Box, styled, Typography } from '@mui/material';
|
||||
import {
|
||||
PlaygroundFeatureSchema,
|
||||
@ -46,7 +47,7 @@ export const PlaygroundResultStrategyLists = ({
|
||||
>{`Strategies (${strategies.length})`}</Typography>
|
||||
<Box sx={{ width: '100%' }}>
|
||||
{strategies.map((strategy, index) => (
|
||||
<>
|
||||
<Fragment key={strategy.id}>
|
||||
<ConditionallyRender
|
||||
condition={index > 0}
|
||||
show={<StrategySeparator text="OR" />}
|
||||
@ -58,7 +59,7 @@ export const PlaygroundResultStrategyLists = ({
|
||||
compact={compact}
|
||||
input={input}
|
||||
/>
|
||||
</>
|
||||
</Fragment>
|
||||
))}
|
||||
</Box>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user