delete doppelte Bestätigung

POI wurde erfolgreich gelöscht.
This commit is contained in:
ISA
2024-09-11 15:35:13 +02:00
parent 8a01ca8814
commit 633886b466
3 changed files with 9 additions and 2 deletions

View File

@@ -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();

View File

@@ -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 {