diff --git a/components/PoiUpdateModal.js b/components/PoiUpdateModal.js index 09940017b..07d80b8e6 100644 --- a/components/PoiUpdateModal.js +++ b/components/PoiUpdateModal.js @@ -83,7 +83,7 @@ const PoiUpdateModal = ({ onClose, poiData }) => { method: "DELETE", }); if (response.ok) { - alert("POI wurde erfolgreich gelöscht."); + // alert("POI wurde erfolgreich gelöscht."); onClose(); // Close the modal //Browser neu laden, um die aktualisierte Liste anzuzeigen window.location.reload(); diff --git a/components/pois/PoiUpdateModal.js b/components/pois/PoiUpdateModal.js index a4ad1e579..c2795c80e 100644 --- a/components/pois/PoiUpdateModal.js +++ b/components/pois/PoiUpdateModal.js @@ -54,7 +54,7 @@ const PoiUpdateModal = ({ onClose, poiData, onSubmit }) => { method: "DELETE", }); if (response.ok) { - alert("POI wurde erfolgreich gelöscht."); + //alert("POI wurde erfolgreich gelöscht."); onClose(); window.location.reload(); } else { diff --git a/store/atoms/polylineLayerVisibleState.js b/store/atoms/polylineLayerVisibleState.js new file mode 100644 index 000000000..6988d96af --- /dev/null +++ b/store/atoms/polylineLayerVisibleState.js @@ -0,0 +1,7 @@ +// /sttore/atoms/polylineLayerVisibleState.js +import { atom } from "recoil"; + +export const polylineLayerVisibleState = atom({ + key: "polylineLayerVisibleState", + default: true, // Standardmäßig auf sichtbar setzen +});