From c30e57579868b8f3d21e6e6083e37cba8bcfa408 Mon Sep 17 00:00:00 2001 From: Boubrid Ihab Date: Sun, 22 May 2022 22:51:04 +0100 Subject: fix: correct children key issue --- modern/src/reports/EventReportPage.js | 6 +++--- modern/src/reports/StopReportPage.js | 4 ++-- modern/src/reports/SummaryReportPage.js | 4 ++-- modern/src/reports/TripReportPage.js | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'modern/src') 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]) => ( - {t(string)} + {t(string)} ))} @@ -130,8 +130,8 @@ const EventReportPage = () => { - {items.map((item) => ( - + {items.map((item, index) => ( + {columns.map((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 = () => { - {items.map((item) => ( - + {items.map((item, index) => ( + {columns.map((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 = () => { - {items.map((item) => ( - + {items.map((item, index) => ( + {columns.map((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 = () => { - {items.map((item) => ( - + {items.map((item, index) => ( + {columns.map((key) => ( {formatValue(item, key)} -- cgit v1.2.3