diff --git a/integreat_cms/static/src/index.ts b/integreat_cms/static/src/index.ts index b81aae6203..d92607f66c 100644 --- a/integreat_cms/static/src/index.ts +++ b/integreat_cms/static/src/index.ts @@ -49,7 +49,7 @@ import "./js/grids/toggle-grid-checkbox"; import "./js/chat/send-chat-message"; import "./js/chat/delete-chat-message"; -import "./js/poi_box"; +import "./js/poi-box"; import "./js/events/conditional-fields"; import "./js/events/auto-complete"; diff --git a/integreat_cms/static/src/js/poi_box.ts b/integreat_cms/static/src/js/poi-box.ts similarity index 98% rename from integreat_cms/static/src/js/poi_box.ts rename to integreat_cms/static/src/js/poi-box.ts index 8e728179d0..b789a47951 100644 --- a/integreat_cms/static/src/js/poi_box.ts +++ b/integreat_cms/static/src/js/poi-box.ts @@ -156,7 +156,7 @@ const removePoi = () => { // Clear the poi form hidePoiFormWidget(); console.debug("Removed POI data"); - document.getElementById("poi-address-container").getElementsByTagName("input")[0].value = "-1"; + (document.getElementById("id_location") as HTMLInputElement).value = "-1"; document.getElementById("info-location-mandatory")?.classList.remove("hidden"); };