diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-02 16:54:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-02 16:54:42 -0700 |
commit | 44fd230a4c0043a6e89a793bcf333072a01441a6 (patch) | |
tree | c4681bf322e2d4e5cf1c7258ada2b3c985468471 /modern/src/map | |
parent | 8f3b27e86ac9b9a94bdd5319501ecb7e056ec595 (diff) | |
download | trackermap-web-44fd230a4c0043a6e89a793bcf333072a01441a6.tar.gz trackermap-web-44fd230a4c0043a6e89a793bcf333072a01441a6.tar.bz2 trackermap-web-44fd230a4c0043a6e89a793bcf333072a01441a6.zip |
Option to hide login language (fix #654)
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/core/useMapStyles.js | 2 | ||||
-rw-r--r-- | modern/src/map/overlay/useMapOverlays.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js index 72f18ebc..78b3cdee 100644 --- a/modern/src/map/core/useMapStyles.js +++ b/modern/src/map/core/useMapStyles.js @@ -29,7 +29,7 @@ export default () => { const tomTomKey = useAttributePreference('tomTomKey'); const hereKey = useAttributePreference('hereKey'); const mapboxAccessToken = useAttributePreference('mapboxAccessToken'); - const customMapUrl = useSelector((state) => state.session.server?.mapUrl); + const customMapUrl = useSelector((state) => state.session.server.mapUrl); return [ { diff --git a/modern/src/map/overlay/useMapOverlays.js b/modern/src/map/overlay/useMapOverlays.js index e6311202..664054b8 100644 --- a/modern/src/map/overlay/useMapOverlays.js +++ b/modern/src/map/overlay/useMapOverlays.js @@ -18,7 +18,7 @@ export default () => { const openWeatherKey = useAttributePreference('openWeatherKey'); const tomTomKey = useAttributePreference('tomTomKey'); const hereKey = useAttributePreference('hereKey'); - const customMapOverlay = useSelector((state) => state.session.server?.overlayUrl); + const customMapOverlay = useSelector((state) => state.session.server.overlayUrl); return [ { |