From 472739642a90f43970dc85ad37277f5124b8d797 Mon Sep 17 00:00:00 2001 From: Samarth Agarwal Date: Fri, 29 Mar 2019 18:48:14 -0400 Subject: Added undef line --- web/public/javascripts/map.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web/public/javascripts/map.js') diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js index c5b1583..07ca190 100644 --- a/web/public/javascripts/map.js +++ b/web/public/javascripts/map.js @@ -125,6 +125,7 @@ function markAsPending(e) { function markAsCompleted(e) { map.removeLayer(currPoint); currPoint.feature.geometry.status = "completed"; + currPoint = undefined; } function closeDetails(e) { -- cgit v1.2.3