Browser neu laden, um die aktualisierte Liste anzuzeigen (Löschen)

This commit is contained in:
ISA
2024-05-22 08:21:48 +02:00
parent a7eee8eccf
commit 0b33458261
2 changed files with 20 additions and 14 deletions

View File

@@ -19,6 +19,8 @@ const PoiUpdateModal = ({ onClose, poiData }) => {
if (response.ok) {
alert("POI wurde erfolgreich gelöscht.");
onClose(); // Close the modal
//Browser neu laden, um die aktualisierte Liste anzuzeigen
window.location.reload();
} else {
throw new Error("Fehler beim Löschen des POI.");
}