diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-22 12:16:33 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-22 12:16:33 -0700 |
commit | 9be7c49b2c59160e12f1787ab91f010b22fa6844 (patch) | |
tree | 102433422cb3a7a47dbd88a767b3baeb7681fffd /modern/src/reports | |
parent | 81111395638f103b336c47d823be3763e01982e5 (diff) | |
download | trackermap-web-9be7c49b2c59160e12f1787ab91f010b22fa6844.tar.gz trackermap-web-9be7c49b2c59160e12f1787ab91f010b22fa6844.tar.bz2 trackermap-web-9be7c49b2c59160e12f1787ab91f010b22fa6844.zip |
Fix list key warnings
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/EventReportPage.js | 4 | ||||
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 4 | ||||
-rw-r--r-- | modern/src/reports/StatisticsPage.js | 4 | ||||
-rw-r--r-- | modern/src/reports/StopReportPage.js | 4 | ||||
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 4 | ||||
-rw-r--r-- | modern/src/reports/TripReportPage.js | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index f1b0c6bd..8a3a070f 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -126,14 +126,14 @@ const EventReportPage = () => { <Table> <TableHead> <TableRow> - {columns.map((key) => (<TableCell>{t(columnsMap.get(key))}</TableCell>))} + {columns.map((key) => (<TableCell key={key}>{t(columnsMap.get(key))}</TableCell>))} </TableRow> </TableHead> <TableBody> {items.map((item) => ( <TableRow key={item.id}> {columns.map((key) => ( - <TableCell> + <TableCell key={key}> {formatValue(item, key)} </TableCell> ))} diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index 118c7758..b67833f9 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -52,14 +52,14 @@ const RouteReportPage = () => { <Table> <TableHead> <TableRow> - {columns.map((key) => (<TableCell>{positionAttributes[key].name}</TableCell>))} + {columns.map((key) => (<TableCell key={key}>{positionAttributes[key].name}</TableCell>))} </TableRow> </TableHead> <TableBody> {items.map((item) => ( <TableRow key={item.id}> {columns.map((key) => ( - <TableCell> + <TableCell key={key}> <PositionValue position={item} property={item.hasOwnProperty(key) ? key : null} diff --git a/modern/src/reports/StatisticsPage.js b/modern/src/reports/StatisticsPage.js index b1652468..9ed830eb 100644 --- a/modern/src/reports/StatisticsPage.js +++ b/modern/src/reports/StatisticsPage.js @@ -50,14 +50,14 @@ const StatisticsPage = () => { <Table> <TableHead> <TableRow> - {columns.map((key) => (<TableCell>{t(columnsMap.get(key))}</TableCell>))} + {columns.map((key) => (<TableCell key={key}>{t(columnsMap.get(key))}</TableCell>))} </TableRow> </TableHead> <TableBody> {items.map((item) => ( <TableRow key={item.id}> {columns.map((key) => ( - <TableCell> + <TableCell key={key}> {key === 'captureTime' ? formatDate(item[key]) : item[key]} </TableCell> ))} diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index dc2ac19a..5e1c2a66 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -80,14 +80,14 @@ const StopReportPage = () => { <Table> <TableHead> <TableRow> - {columns.map((key) => (<TableCell>{t(columnsMap.get(key))}</TableCell>))} + {columns.map((key) => (<TableCell key={key}>{t(columnsMap.get(key))}</TableCell>))} </TableRow> </TableHead> <TableBody> {items.map((item) => ( <TableRow key={item.id}> {columns.map((key) => ( - <TableCell> + <TableCell key={key}> {formatValue(item, key)} </TableCell> ))} diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index 1b8fd8e0..9de7e13c 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -95,14 +95,14 @@ const SummaryReportPage = () => { <Table> <TableHead> <TableRow> - {columns.map((key) => (<TableCell>{t(columnsMap.get(key))}</TableCell>))} + {columns.map((key) => (<TableCell key={key}>{t(columnsMap.get(key))}</TableCell>))} </TableRow> </TableHead> <TableBody> {items.map((item) => ( <TableRow key={item.id}> {columns.map((key) => ( - <TableCell> + <TableCell key={key}> {formatValue(item, key)} </TableCell> ))} diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index 6e230388..e6e13d56 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -89,14 +89,14 @@ const TripReportPage = () => { <Table> <TableHead> <TableRow> - {columns.map((key) => (<TableCell>{t(columnsMap.get(key))}</TableCell>))} + {columns.map((key) => (<TableCell key={key}>{t(columnsMap.get(key))}</TableCell>))} </TableRow> </TableHead> <TableBody> {items.map((item) => ( <TableRow key={item.id}> {columns.map((key) => ( - <TableCell> + <TableCell key={key}> {formatValue(item, key)} </TableCell> ))} |