chore: fix react keys warning

This commit is contained in:
Roman Hotsiy 2019-05-13 12:06:26 +03:00
parent 845511ce9a
commit 3f6765078e
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -22,9 +22,9 @@ export class EnumValues extends React.PureComponent<EnumValuesProps> {
{values.length === 1 ? l('enumSingleValue') : l('enum')}:
</FieldLabel>
{values.map((value, idx) => (
<>
<ExampleValue key={idx}>{JSON.stringify(value)}</ExampleValue>{' '}
</>
<React.Fragment key={idx}>
<ExampleValue>{JSON.stringify(value)}</ExampleValue>{' '}
</React.Fragment>
))}
</div>
);