aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorBoubrid Ihab <boubrid.ihab@gmail.com>2022-05-22 22:51:04 +0100
committerBoubrid Ihab <boubrid.ihab@gmail.com>2022-05-22 23:06:57 +0100
commitc30e57579868b8f3d21e6e6083e37cba8bcfa408 (patch)
tree57e075330795dd75111a42e5ab13ba160d2cfa2b /modern/src/reports
parent729c219369e288a60432f0e7722dae36088c0bda (diff)
downloadtrackermap-web-c30e57579868b8f3d21e6e6083e37cba8bcfa408.tar.gz
trackermap-web-c30e57579868b8f3d21e6e6083e37cba8bcfa408.tar.bz2
trackermap-web-c30e57579868b8f3d21e6e6083e37cba8bcfa408.zip
fix: correct children key issue
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/EventReportPage.js6
-rw-r--r--modern/src/reports/StopReportPage.js4
-rw-r--r--modern/src/reports/SummaryReportPage.js4
-rw-r--r--modern/src/reports/TripReportPage.js4
4 files changed, 9 insertions, 9 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js
index 8a3a070f..bd0ad68b 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -115,7 +115,7 @@ const EventReportPage = () => {
multiple
>
{typesArray.map(([key, string]) => (
- <MenuItem value={key}>{t(string)}</MenuItem>
+ <MenuItem key={key} value={key}>{t(string)}</MenuItem>
))}
</Select>
</FormControl>
@@ -130,8 +130,8 @@ const EventReportPage = () => {
</TableRow>
</TableHead>
<TableBody>
- {items.map((item) => (
- <TableRow key={item.id}>
+ {items.map((item, index) => (
+ <TableRow key={index}>
{columns.map((key) => (
<TableCell key={key}>
{formatValue(item, key)}
diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js
index 5e1c2a66..5b5fdc29 100644
--- a/modern/src/reports/StopReportPage.js
+++ b/modern/src/reports/StopReportPage.js
@@ -84,8 +84,8 @@ const StopReportPage = () => {
</TableRow>
</TableHead>
<TableBody>
- {items.map((item) => (
- <TableRow key={item.id}>
+ {items.map((item, index) => (
+ <TableRow key={index}>
{columns.map((key) => (
<TableCell key={key}>
{formatValue(item, key)}
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js
index 9de7e13c..12f39ac8 100644
--- a/modern/src/reports/SummaryReportPage.js
+++ b/modern/src/reports/SummaryReportPage.js
@@ -99,8 +99,8 @@ const SummaryReportPage = () => {
</TableRow>
</TableHead>
<TableBody>
- {items.map((item) => (
- <TableRow key={item.id}>
+ {items.map((item, index) => (
+ <TableRow key={index}>
{columns.map((key) => (
<TableCell key={key}>
{formatValue(item, key)}
diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js
index e6e13d56..5662e18a 100644
--- a/modern/src/reports/TripReportPage.js
+++ b/modern/src/reports/TripReportPage.js
@@ -93,8 +93,8 @@ const TripReportPage = () => {
</TableRow>
</TableHead>
<TableBody>
- {items.map((item) => (
- <TableRow key={item.id}>
+ {items.map((item, index) => (
+ <TableRow key={index}>
{columns.map((key) => (
<TableCell key={key}>
{formatValue(item, key)}