mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[DevTools] Fix missing key warning (#34186)
This commit is contained in:
parent
47fd2f5e14
commit
0422a00e3e
|
|
@ -174,9 +174,8 @@ export default function InspectedElementView({
|
||||||
{showStack ? <StackTraceView stack={stack} /> : null}
|
{showStack ? <StackTraceView stack={stack} /> : null}
|
||||||
{showOwnersList &&
|
{showOwnersList &&
|
||||||
owners?.map(owner => (
|
owners?.map(owner => (
|
||||||
<>
|
<Fragment key={owner.id}>
|
||||||
<OwnerView
|
<OwnerView
|
||||||
key={owner.id}
|
|
||||||
displayName={owner.displayName || 'Anonymous'}
|
displayName={owner.displayName || 'Anonymous'}
|
||||||
hocDisplayNames={owner.hocDisplayNames}
|
hocDisplayNames={owner.hocDisplayNames}
|
||||||
environmentName={
|
environmentName={
|
||||||
|
|
@ -190,7 +189,7 @@ export default function InspectedElementView({
|
||||||
{owner.stack != null && owner.stack.length > 0 ? (
|
{owner.stack != null && owner.stack.length > 0 ? (
|
||||||
<StackTraceView stack={owner.stack} />
|
<StackTraceView stack={owner.stack} />
|
||||||
) : null}
|
) : null}
|
||||||
</>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
{rootType !== null && (
|
{rootType !== null && (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user