Displaying the graph also if tenants are not present
Prevent routes from beeing duplicated
Change-Id: Icf6967d450f32e8d80f365c1be3181e3c10c178e
diff --git a/src/app/service-graph/components/coarse/coarse.component.ts b/src/app/service-graph/components/coarse/coarse.component.ts
index fb04e2d..ed5d100 100644
--- a/src/app/service-graph/components/coarse/coarse.component.ts
+++ b/src/app/service-graph/components/coarse/coarse.component.ts
@@ -46,7 +46,7 @@
this.$log.debug(`[XosCoarseTenancyGraph] Coarse Event and render`, res);
// id there are no data, do nothing
- if (!res.nodes || res.nodes.length === 0 || !res.links || res.links.length === 0) {
+ if (!res) {
return;
}
this.graph = res;
@@ -138,9 +138,6 @@
}
private addNodeLinksToForceLayout(data: IXosServiceGraph) {
- if (!data.nodes || !data.links) {
- return;
- }
this.forceLayout
.nodes(data.nodes)
.links(data.links)