diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index 56e4c7ed..8bf03a9a 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -76,6 +76,9 @@ const SummaryReportPage = () => { return item[key]; } }; + const generateKey = (item) => { + return `${ item.deviceId }_${Date.parse(item.startTime)}`; + } return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportSummary']}> <ReportFilter handleSubmit={handleSubmit}> @@ -99,7 +102,7 @@ const SummaryReportPage = () => { </TableHead> <TableBody> {items.map((item) => ( - <TableRow key={item.deviceId}> + <TableRow key={generateKey(item)}> {columns.map((key) => ( <TableCell key={key}> {formatValue(item, key)} |