diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/reports/EventReportPage.js | 3 | ||||
-rw-r--r-- | modern/src/reports/StatisticsPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/StopReportPage.js | 3 | ||||
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 3 | ||||
-rw-r--r-- | modern/src/reports/TripReportPage.js | 3 |
5 files changed, 5 insertions, 9 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index 6a1fe309..b312ad2f 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -94,7 +94,6 @@ const EventReportPage = () => { return item[key]; } }; - return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportEvents']}> <ReportFilter handleSubmit={handleSubmit}> @@ -116,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> 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 ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'statisticsTitle']}> <ReportFilter handleSubmit={handleSubmit} showOnly ignoreDevice> diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index 4cf29035..408f8798 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -70,7 +70,6 @@ const StopReportPage = () => { return item[key]; } }; - return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportStops']}> <ReportFilter handleSubmit={handleSubmit}> @@ -85,7 +84,7 @@ const StopReportPage = () => { </TableHead> <TableBody> {items.map((item) => ( - <TableRow key={item.id}> + <TableRow key={item.positionId}> {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..56e4c7ed 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -76,7 +76,6 @@ const SummaryReportPage = () => { return item[key]; } }; - return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportSummary']}> <ReportFilter handleSubmit={handleSubmit}> @@ -100,7 +99,7 @@ const SummaryReportPage = () => { </TableHead> <TableBody> {items.map((item) => ( - <TableRow key={item.id}> + <TableRow key={item.deviceId}> {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..37ba2e96 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -79,7 +79,6 @@ const TripReportPage = () => { return item[key]; } }; - return ( <PageLayout menu={<ReportsMenu />} breadcrumbs={['reportTitle', 'reportTrips']}> <ReportFilter handleSubmit={handleSubmit}> @@ -94,7 +93,7 @@ const TripReportPage = () => { </TableHead> <TableBody> {items.map((item) => ( - <TableRow key={item.id}> + <TableRow key={item.startPositionId}> {columns.map((key) => ( <TableCell key={key}> {formatValue(item, key)} |