diff --git a/js/index.js b/js/index.js
index 280fa46..e5cb9b5 100644
--- a/js/index.js
+++ b/js/index.js
@@ -80,9 +80,9 @@
);
deletePointButton = L.easyButton(
- '',
+ '',
function () {
- routing.removeWaypoint(routing.getLast());
+ routing.removeWaypoint(routing.getLast(), function(err, data) {});
},
i18next.t('map.delete-last-point')
);