|
|
@@ -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;
|
|
|
}
|