[APM] fixes #29037 by applying a key prop to <Fragment> within a render loop. (#29240)

This commit is contained in:
Oliver Gupte 2019-01-24 07:47:01 -08:00 committed by GitHub
parent 6eba497cc5
commit 1ba6c28843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,10 +46,9 @@ export function Stacktrace({ stackframes = [], codeLanguage }: Props) {
const hasTrailingSpacer =
hasMultipleStackframes && i !== groups.length - 1;
return (
<Fragment>
<Fragment key={i}>
{hasLeadingSpacer && <EuiSpacer size="m" />}
<LibraryStackFrames
key={i}
initialVisiblity={!hasMultipleStackframes}
stackframes={group.stackframes}
codeLanguage={codeLanguage}