aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/TripReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-22 12:16:33 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-22 12:16:33 -0700
commit9be7c49b2c59160e12f1787ab91f010b22fa6844 (patch)
tree102433422cb3a7a47dbd88a767b3baeb7681fffd /modern/src/reports/TripReportPage.js
parent81111395638f103b336c47d823be3763e01982e5 (diff)
downloadtrackermap-web-9be7c49b2c59160e12f1787ab91f010b22fa6844.tar.gz
trackermap-web-9be7c49b2c59160e12f1787ab91f010b22fa6844.tar.bz2
trackermap-web-9be7c49b2c59160e12f1787ab91f010b22fa6844.zip
Fix list key warnings
Diffstat (limited to 'modern/src/reports/TripReportPage.js')
-rw-r--r--modern/src/reports/TripReportPage.js4
1 files changed, 2 insertions, 2 deletions
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>
))}