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