Merge pull request #20365 from brunocascio/patch-1
fix newrelic dashboard key prop on list
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user