aboutsummaryrefslogtreecommitdiff
path: root/web/public/javascripts
diff options
context:
space:
mode:
authorSamarth Agarwal <samarth.agarwal@mail.utoronto.ca>2019-03-29 22:55:14 +0000
committerSamarth Agarwal <samarth.agarwal@mail.utoronto.ca>2019-03-29 22:55:14 +0000
commit49772d1150eb39a89d1e221beecbf465b37fa2f3 (patch)
treeee2f3ce3584f60689256422fef8bf608b3111dd3 /web/public/javascripts
parentd0259d4d2008afc5db87d8bd2b1705ee9c38e84a (diff)
parent472739642a90f43970dc85ad37277f5124b8d797 (diff)
Added undef line.
Diffstat (limited to 'web/public/javascripts')
-rw-r--r--web/public/javascripts/map.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js
index 98e046b..6f06e40 100644
--- a/web/public/javascripts/map.js
+++ b/web/public/javascripts/map.js
@@ -150,6 +150,7 @@ function markAsCompleted(e) {
.then(function(responseJson) {
alert("Your change has been saved.");
map.removeLayer(currPoint);
+ currPoint = undefined;
})
.catch(function(error) {
alert(error);