Add keys in NewVisHelp render (#48619) (#48757)

This commit is contained in:
Daniil Suleiman 2019-10-21 17:45:13 +03:00 committed by GitHub
parent 354973e98f
commit 06d3b05e58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@
*/
import { FormattedMessage } from '@kbn/i18n/react';
import React from 'react';
import React, { Fragment } from 'react';
import { EuiText, EuiButton } from '@elastic/eui';
import chrome from 'ui/chrome';
import { VisTypeAliasListEntry } from './type_selection';
@ -37,7 +37,7 @@ export function NewVisHelp(props: Props) {
/>
</p>
{props.promotedTypes.map(t => (
<>
<Fragment key={t.name}>
<p>
<strong>{t.promotion!.description}</strong>
</p>
@ -50,7 +50,7 @@ export function NewVisHelp(props: Props) {
>
{t.promotion!.buttonText}
</EuiButton>
</>
</Fragment>
))}
</EuiText>
);