delete doppelte Bestätigung
POI wurde erfolgreich gelöscht.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
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