diff --git a/components/MapComponent.js b/components/MapComponent.js index e74abc33a..283d6ffcc 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -281,7 +281,10 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { // Kontextmenü Callback für "POI hinzufügen" const addStationCallback = useCallback( (event) => { - //console.log("Benutzerrechte zum Zeitpunkt des Aufrufs:", hasRights); + console.log( + "Überprüfung der Berechtigung in addStationCallback: ", + hasRights + ); if (hasRights) { setPopupCoordinates(event.latlng); setShowPopup(true); @@ -299,7 +302,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { } }, [hasRights] - ); // Abhängigkeit zu hasRights hinzufügen + ); //-----Kontextmenu----ende------------ diff --git a/utils/utils.js b/utils/utils.js index 5f162fb0a..66153dbdd 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -1,3 +1,4 @@ +// /utils/utils.js import { useState } from "react"; import circleIcon from "../components/CircleIcon";