diff --git a/components/mainComponent/MapComponent.js b/components/mainComponent/MapComponent.js index 8461ef7e5..d9aac783a 100644 --- a/components/mainComponent/MapComponent.js +++ b/components/mainComponent/MapComponent.js @@ -44,7 +44,6 @@ import { updateCountdown, closePolylineContextMenu } from "../../redux/slices/po //-------------------MapComponent.js hooks-------------------- import useInitializeMap from "./hooks/useInitializeMap"; -import useRestoreMapSettings from "./hooks/useRestoreMapSettings"; import { setSelectedPoi } from "../../redux/slices/selectedPoiSlice"; import { setDisabled } from "../../redux/slices/polylineEventsDisabledSlice"; import { setMapId, setUserId } from "../../redux/slices/urlParameterSlice"; @@ -429,7 +428,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { }, [map, linePositions, lineColors, tooltipContents, newPoint, newCoords, tempMarker, polylineVisible]); //-------------------------------------------- - useRestoreMapSettings(map); + //Test in useEffect useEffect(() => { if (map) { diff --git a/components/mainComponent/hooks/useRestoreMapSettings.js b/components/mainComponent/hooks/useRestoreMapSettings.js deleted file mode 100644 index 387958d43..000000000 --- a/components/mainComponent/hooks/useRestoreMapSettings.js +++ /dev/null @@ -1,12 +0,0 @@ -import { useEffect } from "react"; -import { restoreMapSettings } from "../../../utils/mapUtils.js"; // Stelle sicher, dass der Pfad korrekt ist - -const useRestoreMapSettings = (map) => { - useEffect(() => { - if (map) { - restoreMapSettings(map); - } - }, [map]); -}; - -export default useRestoreMapSettings; diff --git a/config/appVersion.js b/config/appVersion.js index ba2679883..37cc40041 100644 --- a/config/appVersion.js +++ b/config/appVersion.js @@ -1,2 +1,2 @@ // /config/appVersion -export const APP_VERSION = "1.1.154"; +export const APP_VERSION = "1.1.155";