소스 검색

Fix verwijderen marker na finish

Harry de Boer 5 년 전
부모
커밋
c5973f38b1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 = [];
         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);
                 marker.bindPopup(t.name).openPopup();
                 this.markers.push(marker);