diff options
Diffstat (limited to 'modern/src/map/MapGeofence.js')
-rw-r--r-- | modern/src/map/MapGeofence.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/MapGeofence.js b/modern/src/map/MapGeofence.js index 6208795c..73b32724 100644 --- a/modern/src/map/MapGeofence.js +++ b/modern/src/map/MapGeofence.js @@ -81,7 +81,7 @@ const MapGeofence = () => { useEffect(() => { if (mapGeofences) { - map.getSource(id).setData({ + map.getSource(id)?.setData({ type: 'FeatureCollection', features: Object.values(geofences).map((geofence) => geofenceToFeature(theme, geofence)), }); |