From 6f7a3abf0cb2baba36b47685970b751e09f866d1 Mon Sep 17 00:00:00 2001 From: Boubrid Ihab Date: Mon, 23 May 2022 17:14:32 +0100 Subject: fix: report key children issue --- modern/src/reports/EventReportPage.js | 5 ++--- modern/src/reports/StatisticsPage.js | 2 +- modern/src/reports/StopReportPage.js | 5 ++--- modern/src/reports/SummaryReportPage.js | 5 ++--- modern/src/reports/TripReportPage.js | 5 ++--- 5 files changed, 9 insertions(+), 13 deletions(-) (limited to 'modern') diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index 8d71d50b..b312ad2f 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -94,7 +94,6 @@ const EventReportPage = () => { return item[key]; } }; - return ( } breadcrumbs={['reportTitle', 'reportEvents']}> @@ -131,8 +130,8 @@ const EventReportPage = () => { - {items.map((item, index) => ( - + {items.map((item) => ( + {columns.map((key) => ( {formatValue(item, key)} diff --git a/modern/src/reports/StatisticsPage.js b/modern/src/reports/StatisticsPage.js index b9b14902..4dd55745 100644 --- a/modern/src/reports/StatisticsPage.js +++ b/modern/src/reports/StatisticsPage.js @@ -40,7 +40,7 @@ const StatisticsPage = () => { throw Error(await response.text()); } }); - +console.log(items); return ( } breadcrumbs={['reportTitle', 'statisticsTitle']}> diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index 587e1dd4..408f8798 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -70,7 +70,6 @@ const StopReportPage = () => { return item[key]; } }; - return ( } breadcrumbs={['reportTitle', 'reportStops']}> @@ -84,8 +83,8 @@ const StopReportPage = () => { - {items.map((item, index) => ( - + {items.map((item) => ( + {columns.map((key) => ( {formatValue(item, key)} diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index d58f7568..56e4c7ed 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -76,7 +76,6 @@ const SummaryReportPage = () => { return item[key]; } }; - return ( } breadcrumbs={['reportTitle', 'reportSummary']}> @@ -99,8 +98,8 @@ const SummaryReportPage = () => { - {items.map((item, index) => ( - + {items.map((item) => ( + {columns.map((key) => ( {formatValue(item, key)} diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index 8e03931b..37ba2e96 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -79,7 +79,6 @@ const TripReportPage = () => { return item[key]; } }; - return ( } breadcrumbs={['reportTitle', 'reportTrips']}> @@ -93,8 +92,8 @@ const TripReportPage = () => { - {items.map((item, index) => ( - + {items.map((item) => ( + {columns.map((key) => ( {formatValue(item, key)} -- cgit v1.2.3