diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 8da3e97..6049bcc 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -208,6 +208,8 @@ function cancelRemove() { remove_button.innerText = 'Удалить'; remove_button.setAttribute("id", "remove_route"); + remove_button.removeEventListener('click', removeRoute); + }