From 1d1d75ddd3c5765479726251d7bcd6715a27af8e Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Wed, 15 May 2019 21:38:30 +0200 Subject: [PATCH] Fix console errors by adding required callback, change icon (#179) --- js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') );