[DevTools] Fix missing key warning (#34186)

This commit is contained in:
Sebastian "Sebbie" Silbermann 2025-08-12 19:58:19 +02:00 committed by GitHub
parent 47fd2f5e14
commit 0422a00e3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 && (