Merge pull request #20365 from brunocascio/patch-1

fix newrelic dashboard key prop on list
This commit is contained in:
Patrik Oldsberg
2023-10-10 10:55:15 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-newrelic-dashboard': patch
---
Fixed React Warning: "Each child in a list should have a unique 'key' prop" during the rendering of `EntityNewRelicDashboardCard`
@@ -69,9 +69,9 @@ export const DashboardEntityList = () => {
<>No Dashboard Pages found with the specified Dashboard GUID</>
)}
{value?.getDashboardEntity?.data.actor.entitySearch.results.entities?.map(
(entityResult: ResultEntity) => {
(entityResult: ResultEntity, index: number) => {
return (
<Box style={{ margin: '10px' }} display="flex">
<Box style={{ margin: '10px' }} display="flex" key={index}>
<Box mr={1} className={classes.svgIcon}>
<Typography component="div">
<DesktopMac />