diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-01 17:25:09 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-01 17:25:09 -0700 |
commit | 59ee36bb64ce6c4b7ea7e10f68b8b1f927af4f7d (patch) | |
tree | dae1eacc5acbd348267198fbcafeceeeaa2fd031 /modern | |
parent | 3e388e438f0e250bd1852c6fa54f9012f33aea6f (diff) | |
download | trackermap-web-59ee36bb64ce6c4b7ea7e10f68b8b1f927af4f7d.tar.gz trackermap-web-59ee36bb64ce6c4b7ea7e10f68b8b1f927af4f7d.tar.bz2 trackermap-web-59ee36bb64ce6c4b7ea7e10f68b8b1f927af4f7d.zip |
Fix issue
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/map/SelectedDeviceMap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/SelectedDeviceMap.js b/modern/src/map/SelectedDeviceMap.js index d09fdb9f..1294085c 100644 --- a/modern/src/map/SelectedDeviceMap.js +++ b/modern/src/map/SelectedDeviceMap.js @@ -15,7 +15,7 @@ const SelectedDeviceMap = () => { const [mapFollow] = usePersistedState('mapFollow', false); useEffect(() => { - if ((selectedDeviceId != previousDeviceId || mapFollow) && position) { + if ((selectedDeviceId !== previousDeviceId || mapFollow) && position) { map.easeTo({ center: [position.longitude, position.latitude], offset: [0, -dimensions.popupMapOffset / 2], |