diff options
-rw-r--r-- | modern/src/main/StatusCard.js | 1 | ||||
-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 |
7 files changed, 13 insertions, 12 deletions
diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js index b163c983..b470890e 100644 --- a/modern/src/main/StatusCard.js +++ b/modern/src/main/StatusCard.js @@ -102,6 +102,7 @@ const StatusCard = ({ deviceId, onClose }) => { <TableBody> {positionItems.map((key) => ( <StatusRow + key={key} name={positionAttributes[key].name} content={( <PositionValue 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> ))} |