Skip to content

Commit 0422a00

Browse files
authored
[DevTools] Fix missing key warning (facebook#34186)
1 parent 47fd2f5 commit 0422a00

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/react-devtools-shared/src/devtools/views/Components/InspectedElementView.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ export default function InspectedElementView({
174174
{showStack ? <StackTraceView stack={stack} /> : null}
175175
{showOwnersList &&
176176
owners?.map(owner => (
177-
<>
177+
<Fragment key={owner.id}>
178178
<OwnerView
179-
key={owner.id}
180179
displayName={owner.displayName || 'Anonymous'}
181180
hocDisplayNames={owner.hocDisplayNames}
182181
environmentName={
@@ -190,7 +189,7 @@ export default function InspectedElementView({
190189
{owner.stack != null && owner.stack.length > 0 ? (
191190
<StackTraceView stack={owner.stack} />
192191
) : null}
193-
</>
192+
</Fragment>
194193
))}
195194

196195
{rootType !== null && (

0 commit comments

Comments
 (0)