Explorar o código

Fix verwijderen marker na finish

Harry de Boer %!s(int64=5) %!d(string=hai) anos
pai
achega
c5973f38b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/resources/static/dashboard/dashboard.js

+ 1 - 1
src/main/resources/static/dashboard/dashboard.js

@@ -81,7 +81,7 @@ class Dashboard {
         this.markers.forEach(m => m.remove());
         this.markers.forEach(m => m.remove());
         this.markers = [];
         this.markers = [];
         teams.forEach(t => {
         teams.forEach(t => {
-            if (t.location !== null && t.finished !== false && t.started === true) {
+            if (t.location !== null && t.finished === false && t.started === true) {
                 let marker = L.marker([t.location.latitude, t.location.longitude]).addTo(this.map);
                 let marker = L.marker([t.location.latitude, t.location.longitude]).addTo(this.map);
                 marker.bindPopup(t.name).openPopup();
                 marker.bindPopup(t.name).openPopup();
                 this.markers.push(marker);
                 this.markers.push(marker);