aboutsummaryrefslogtreecommitdiff
path: root/web/public/javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'web/public/javascripts')
-rw-r--r--web/public/javascripts/map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js
index 33b0ed6..abb988a 100644
--- a/web/public/javascripts/map.js
+++ b/web/public/javascripts/map.js
@@ -42,7 +42,7 @@ function plotPointsOnMap(points) {
// show details about point
// e is the event info
function showDetails(e) {
- if(currPoint !== null) {
+ if(currPoint !== undefined) {
if (currPoint.feature.geometry.status === "new") {
currPoint._icon.src = '../assets/blue-icon.png';
}