Fix key warning

Summary: Crash reporter generated React errors because the different lines in a stack trace are not per definition unique

Reviewed By: jknoxville

Differential Revision: D26201941

fbshipit-source-id: 084e0157b1fa3b8216d35f62f0dc17b0d6414b8e
This commit is contained in:
Michel Weststrate
2021-02-03 06:58:04 -08:00
committed by Facebook GitHub Bot
parent 9fe82dd6c7
commit 40abef860f

View File

@@ -782,12 +782,9 @@ export default class CrashReporterPlugin extends FlipperDevicePlugin<
}, },
]}> ]}>
<Line /> <Line />
{children.map((child) => { {children.map((child, index) => {
return ( return (
<StackTraceComponent <StackTraceComponent key={index} stacktrace={child.message} />
key={child.message}
stacktrace={child.message}
/>
); );
})} })}
</ContextMenu> </ContextMenu>