Skip to content

Commit ae121d8

Browse files
tableData.caption is unique thus using that as a key instead of index
1 parent e135419 commit ae121d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

desktop/core/src/desktop/js/apps/admin/Metrics/MetricsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ const Metrics: React.FC = (): JSX.Element => {
127127
{!error &&
128128
filteredMetricsData
129129
.filter(tableData => showAllTables || selectedMetric === tableData.caption)
130-
.map((tableData, index) => (
131-
<div key={index}>
130+
.map(tableData => (
131+
<div key={tableData.caption}>
132132
<MetricsTable caption={tableData.caption} dataSource={tableData.dataSource} />
133133
</div>
134134
))}

0 commit comments

Comments
 (0)