aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/main/MapLiveRoutes.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-26 07:08:01 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-26 07:08:01 -0700
commit6402a8a53a9bac2791741c88a84c85c73c53ba91 (patch)
treea55ba45197f7e3d93c212d06d1fb37c83db96da7 /modern/src/map/main/MapLiveRoutes.js
parent4e733fb2d637300196665b377850e7fdbd5ce8eb (diff)
downloadtrackermap-web-6402a8a53a9bac2791741c88a84c85c73c53ba91.tar.gz
trackermap-web-6402a8a53a9bac2791741c88a84c85c73c53ba91.tar.bz2
trackermap-web-6402a8a53a9bac2791741c88a84c85c73c53ba91.zip
Fix map change crash
Diffstat (limited to 'modern/src/map/main/MapLiveRoutes.js')
-rw-r--r--modern/src/map/main/MapLiveRoutes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/main/MapLiveRoutes.js b/modern/src/map/main/MapLiveRoutes.js
index 397d8c52..049ff9c9 100644
--- a/modern/src/map/main/MapLiveRoutes.js
+++ b/modern/src/map/main/MapLiveRoutes.js
@@ -61,7 +61,7 @@ const MapLiveRoutes = () => {
.filter((id) => (type === 'selected' ? id === selectedDeviceId : true))
.filter((id) => history.hasOwnProperty(id));
- map.getSource(id).setData({
+ map.getSource(id)?.setData({
type: 'FeatureCollection',
features: deviceIds.map((deviceId) => ({
type: 'Feature',