diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-28 17:08:59 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-28 17:08:59 -0700 |
commit | 6a4eba7b63c84c20188b8a6b16f6107698bfde91 (patch) | |
tree | e486dbb32afadee5c2e2c7151d963871820eeb4f /modern/src/main | |
parent | 17b990eabe36138a4a879deef8d03b16ee27e1ba (diff) | |
download | trackermap-web-6a4eba7b63c84c20188b8a6b16f6107698bfde91.tar.gz trackermap-web-6a4eba7b63c84c20188b8a6b16f6107698bfde91.tar.bz2 trackermap-web-6a4eba7b63c84c20188b8a6b16f6107698bfde91.zip |
Move positions to session
Diffstat (limited to 'modern/src/main')
-rw-r--r-- | modern/src/main/DeviceRow.js | 2 | ||||
-rw-r--r-- | modern/src/main/MainPage.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/main/DeviceRow.js b/modern/src/main/DeviceRow.js index 5699c274..dbe5df6e 100644 --- a/modern/src/main/DeviceRow.js +++ b/modern/src/main/DeviceRow.js @@ -55,7 +55,7 @@ const DeviceRow = ({ data, index, style }) => { const admin = useAdministrator(); const item = data[index]; - const position = useSelector((state) => state.positions.items[item.id]); + const position = useSelector((state) => state.session.positions[item.id]); const geofences = useSelector((state) => state.geofences.items); diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index 0655fa92..f5d6d25b 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -67,7 +67,7 @@ const MainPage = () => { const mapOnSelect = useAttributePreference('mapOnSelect', true); const selectedDeviceId = useSelector((state) => state.devices.selectedId); - const positions = useSelector((state) => state.positions.items); + const positions = useSelector((state) => state.session.positions); const [filteredPositions, setFilteredPositions] = useState([]); const selectedPosition = filteredPositions.find((position) => selectedDeviceId && position.deviceId === selectedDeviceId); |