Skip to content

Commit

Permalink
[APM] React key warning when opening popover with external resources (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes authored Oct 13, 2020
1 parent 9fd8212 commit 034653a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import cytoscape from 'cytoscape';
import React from 'react';
import React, { Fragment } from 'react';
import styled from 'styled-components';
import {
SPAN_SUBTYPE,
Expand Down Expand Up @@ -71,7 +71,7 @@ export function Info(data: InfoProps) {
resource.label || resource['span.destination.service.resource'];
const desc = `${resource['span.type']} (${resource['span.subtype']})`;
return (
<>
<Fragment key={resource.id}>
<EuiDescriptionListTitle
className="eui-textTruncate"
title={title}
Expand All @@ -84,7 +84,7 @@ export function Info(data: InfoProps) {
>
{desc}
</EuiDescriptionListDescription>
</>
</Fragment>
);
})}
</EuiDescriptionList>
Expand All @@ -97,8 +97,8 @@ export function Info(data: InfoProps) {
{listItems.map(
({ title, description }) =>
description && (
<div>
<ItemRow key={title}>
<div key={title}>
<ItemRow>
<SubduedDescriptionListTitle>
{title}
</SubduedDescriptionListTitle>
Expand Down

0 comments on commit 034653a

Please sign in to comment.