aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/SummaryReportPage.js
diff options
context:
space:
mode:
authorBoubrid Ihab <boubrid.ihab@gmail.com>2022-05-23 17:14:32 +0100
committerBoubrid Ihab <boubrid.ihab@gmail.com>2022-05-23 17:18:38 +0100
commit6f7a3abf0cb2baba36b47685970b751e09f866d1 (patch)
tree7dfc2774b88864f9bf1a6ec7254090ae3a84571a /modern/src/reports/SummaryReportPage.js
parent0b9209f877c42d9eb69d4b94cfa9c7f16a81967e (diff)
downloadtrackermap-web-6f7a3abf0cb2baba36b47685970b751e09f866d1.tar.gz
trackermap-web-6f7a3abf0cb2baba36b47685970b751e09f866d1.tar.bz2
trackermap-web-6f7a3abf0cb2baba36b47685970b751e09f866d1.zip
fix: report key children issue
Diffstat (limited to 'modern/src/reports/SummaryReportPage.js')
-rw-r--r--modern/src/reports/SummaryReportPage.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js
index d58f7568..56e4c7ed 100644
--- a/modern/src/reports/SummaryReportPage.js
+++ b/modern/src/reports/SummaryReportPage.js
@@ -76,7 +76,6 @@ const SummaryReportPage = () => {
return item[key];
}
};
-
return (
<PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportSummary']}>
<ReportFilter handleSubmit={handleSubmit}>
@@ -99,8 +98,8 @@ const SummaryReportPage = () => {
</TableRow>
</TableHead>
<TableBody>
- {items.map((item, index) => (
- <TableRow key={index}>
+ {items.map((item) => (
+ <TableRow key={item.deviceId}>
{columns.map((key) => (
<TableCell key={key}>
{formatValue(item, key)}