when no services

This commit is contained in:
Michael Quigley 2022-08-04 11:07:57 -04:00
parent d9be87b702
commit 462e90a97f
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -46,21 +46,23 @@ function buildGraph(overview) {
draggable: true draggable: true
}); });
id++ id++
item.services.forEach((item) => { if(item.services != null) {
out.nodes.push({ item.services.forEach((item) => {
id: '' + id, out.nodes.push({
data: {label: 'Service: ' + item.zitiServiceId}, id: '' + id,
position: {x: (id * 25), y: 0}, data: {label: 'Service: ' + item.zitiServiceId},
draggable: true position: {x: (id * 25), y: 0},
}) draggable: true
out.edges.push({ })
id: 'e' + envId + '-' + id, out.edges.push({
source: '' + id, id: 'e' + envId + '-' + id,
target: '' + envId, source: '' + id,
animated: true target: '' + envId,
}) animated: true
id++ })
}); id++
});
}
}); });
return out return out
} }