From e30699fec51d06cf4de27f68e1a6834d5b1df065 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Mon, 11 Sep 2023 10:53:07 +0200 Subject: [PATCH] fix: syntax error --- src/components/map/MapPosition.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/map/MapPosition.js b/src/components/map/MapPosition.js index fd44a1085..01f175eb1 100644 --- a/src/components/map/MapPosition.js +++ b/src/components/map/MapPosition.js @@ -21,7 +21,7 @@ const MapPosition = () => { showNorthArrow, } = useSelector((state) => state.download) const { id: mapId, mapViews: layers } = useSelector((state) => state.map) - const { layersPanelOpen, dataTableHeight } = useSelector( + const { layersPanelOpen, rightPanelOpen, dataTableHeight } = useSelector( (state) => state.ui ) const dataTableOpen = useSelector((state) => !!state.dataTable) @@ -49,7 +49,8 @@ const MapPosition = () => { dataTableOpen, dataTableHeight, downloadMapInfoOpen, - layersPanelOpen.rightPanelOpen, + layersPanelOpen, + rightPanelOpen, ]) // Reset bearing and pitch when new map (mapId changed)