delete doppelte Bestätigung
POI wurde erfolgreich gelöscht.
This commit is contained in:
@@ -83,7 +83,7 @@ const PoiUpdateModal = ({ onClose, poiData }) => {
|
|||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
});
|
});
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
alert("POI wurde erfolgreich gelöscht.");
|
// alert("POI wurde erfolgreich gelöscht.");
|
||||||
onClose(); // Close the modal
|
onClose(); // Close the modal
|
||||||
//Browser neu laden, um die aktualisierte Liste anzuzeigen
|
//Browser neu laden, um die aktualisierte Liste anzuzeigen
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ const PoiUpdateModal = ({ onClose, poiData, onSubmit }) => {
|
|||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
});
|
});
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
alert("POI wurde erfolgreich gelöscht.");
|
//alert("POI wurde erfolgreich gelöscht.");
|
||||||
onClose();
|
onClose();
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
7
store/atoms/polylineLayerVisibleState.js
Normal file
7
store/atoms/polylineLayerVisibleState.js
Normal file
@@ -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
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user