2 Commits 545f956ced ... 7d38139999

Autor SHA1 Mensagem Data
  Harry de Boer 7d38139999 update docker-compose traefik labels 5 anos atrás
  Harry de Boer 545f956ced update docker-compose traefik labels 5 anos atrás
1 arquivos alterados com 6 adições e 2 exclusões
  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;
     }