Skip to content

Commit acfee87

Browse files
[APM] React key warning when opening popover with external resources (#80328)
1 parent 1d1c3c7 commit acfee87

File tree

1 file changed

+5
-5
lines changed
  • x-pack/plugins/apm/public/components/app/ServiceMap/Popover

1 file changed

+5
-5
lines changed

x-pack/plugins/apm/public/components/app/ServiceMap/Popover/Info.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from '@elastic/eui';
1111
import { i18n } from '@kbn/i18n';
1212
import cytoscape from 'cytoscape';
13-
import React from 'react';
13+
import React, { Fragment } from 'react';
1414
import styled from 'styled-components';
1515
import {
1616
SPAN_SUBTYPE,
@@ -71,7 +71,7 @@ export function Info(data: InfoProps) {
7171
resource.label || resource['span.destination.service.resource'];
7272
const desc = `${resource['span.type']} (${resource['span.subtype']})`;
7373
return (
74-
<>
74+
<Fragment key={resource.id}>
7575
<EuiDescriptionListTitle
7676
className="eui-textTruncate"
7777
title={title}
@@ -84,7 +84,7 @@ export function Info(data: InfoProps) {
8484
>
8585
{desc}
8686
</EuiDescriptionListDescription>
87-
</>
87+
</Fragment>
8888
);
8989
})}
9090
</EuiDescriptionList>
@@ -97,8 +97,8 @@ export function Info(data: InfoProps) {
9797
{listItems.map(
9898
({ title, description }) =>
9999
description && (
100-
<div>
101-
<ItemRow key={title}>
100+
<div key={title}>
101+
<ItemRow>
102102
<SubduedDescriptionListTitle>
103103
{title}
104104
</SubduedDescriptionListTitle>

0 commit comments

Comments
 (0)