aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/main/MapSelectedDevice.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/main/MapSelectedDevice.js')
-rw-r--r--modern/src/map/main/MapSelectedDevice.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/main/MapSelectedDevice.js b/modern/src/map/main/MapSelectedDevice.js
index 3f444409..caf40cf8 100644
--- a/modern/src/map/main/MapSelectedDevice.js
+++ b/modern/src/map/main/MapSelectedDevice.js
@@ -13,7 +13,7 @@ const MapSelectedDevice = () => {
const selectZoom = useAttributePreference('web.selectZoom', 10);
const mapFollow = useAttributePreference('mapFollow', false);
- const position = useSelector((state) => state.positions.items[selectedDeviceId]);
+ const position = useSelector((state) => state.session.positions[selectedDeviceId]);
useEffect(() => {
if ((selectedDeviceId !== previousDeviceId || mapFollow) && position) {