Commit 06ed38d1 authored by Marcin Prusinski's avatar Marcin Prusinski
Browse files

Merge pull request #44 in MEL/melodic-frontend from...

Merge pull request #44 in MEL/melodic-frontend from bugfix/MEL-955-your-application-does-not-show-components to rc2.5

* commit '31480ceb':
  checking if values are not null in nodes (for open stack)
parents 5c27de43 31480ceb
......@@ -110,7 +110,7 @@ export class VmListComponent implements OnInit {
const locationId = vm.originId.split('/')[0];
const location = this.locationList
.find(value => value.id === locationId);
return location ? location.geoLocation.city : 'UNKNOWN';
return (location && location.geoLocation) ? location.geoLocation.city : 'UNKNOWN';
}
userHasPermissionToSshConnection(vm: NodeCloudiator): boolean {
......
......@@ -54,8 +54,10 @@ export class ScheduleListComponent implements OnInit {
getTasksList(schedule: ScheduleCloudiator): string[] {
const result = [];
if (schedule.processes !== null) {
schedule.processes
.forEach(value => result.push(value.task));
}
return result;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment