aboutsummaryrefslogtreecommitdiff
path: root/src/reports/CombinedReportPage.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/reports/CombinedReportPage.jsx')
-rw-r--r--src/reports/CombinedReportPage.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reports/CombinedReportPage.jsx b/src/reports/CombinedReportPage.jsx
index f591a7a1..46dbf66b 100644
--- a/src/reports/CombinedReportPage.jsx
+++ b/src/reports/CombinedReportPage.jsx
@@ -9,7 +9,6 @@ import PageLayout from '../common/components/PageLayout';
import ReportsMenu from './components/ReportsMenu';
import { useCatch } from '../reactHelper';
import MapView from '../map/core/MapView';
-import MapRoutePath from '../map/MapRoutePath';
import useReportStyles from './common/useReportStyles';
import TableShimmer from '../common/components/TableShimmer';
import MapCamera from '../map/MapCamera';
@@ -17,6 +16,7 @@ import MapGeofence from '../map/MapGeofence';
import { formatTime } from '../common/util/formatter';
import { prefixString } from '../common/util/stringUtils';
import MapMarkers from '../map/MapMarkers';
+import MapRouteCoordinates from '../map/MapRouteCoordinates';
const CombinedReportPage = () => {
const classes = useReportStyles();
@@ -62,10 +62,11 @@ const CombinedReportPage = () => {
<MapView>
<MapGeofence />
{items.map((item) => (
- <MapRoutePath
+ <MapRouteCoordinates
key={item.deviceId}
name={devices[item.deviceId].name}
coordinates={item.route}
+ deviceId={item.deviceId}
/>
))}
<MapMarkers markers={createMarkers()} />