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/RouteReportPage.js | |
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/RouteReportPage.js')
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
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} |