aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6a1fe309..8d71d50b 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -116,7 +116,7 @@ const EventReportPage = () => {
multiple
>
{typesArray.map(([key, string]) => (
- <MenuItem value={key}>{t(string)}</MenuItem>
+ <MenuItem key={key} value={key}>{t(string)}</MenuItem>
))}
</Select>
</FormControl>
@@ -131,8 +131,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 4cf29035..587e1dd4 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 bd27bf26..d58f7568 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 4846afa6..8e03931b 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)}