2 커밋 545f956ced ... 7d38139999

작성자 SHA1 메시지 날짜
  Harry de Boer 7d38139999 update docker-compose traefik labels 5 년 전
  Harry de Boer 545f956ced update docker-compose traefik labels 5 년 전
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      src/main/resources/static/dashboard/dashboard.js

+ 6 - 2
src/main/resources/static/dashboard/dashboard.js

@@ -45,8 +45,12 @@ class Dashboard {
     showTeams(teams) {
         let teamlist = '';
         teams.forEach(t => {
-            teamlist += '<li>' + t.name + ' - ' + t.mission
-                + ' (' + t.location.latitude + ', ' + t.location.longitude + ') </li>';
+            teamlist += '<li>';
+            teamlist += t.name + ' - ' + t.mission;
+            if (t.location !== null) {
+                teamlist += ' (' + t.location.latitude + ', ' + t.location.longitude + ')';
+            }
+            teamlist += '</li>';
         });
         document.getElementById("teamlist").innerHTML = teamlist;
     }