[CORD-1043] Fine-grained service graph first draft
Change-Id: I16566b0c38dda64fa920120ce16ea699ca157279
diff --git a/src/app/service-graph/components/coarse/coarse.component.ts b/src/app/service-graph/components/coarse/coarse.component.ts
index 566698c..d610aa6 100644
--- a/src/app/service-graph/components/coarse/coarse.component.ts
+++ b/src/app/service-graph/components/coarse/coarse.component.ts
@@ -23,7 +23,7 @@
private linkGroup;
private nodeGroup;
- // debounce functions
+ // debounced functions
private renderGraph;
constructor (
@@ -40,6 +40,7 @@
this.CoarseGraphSubscription = this.XosServiceGraphStore.getCoarse()
.subscribe(
(res: IXosServiceGraph) => {
+
// id there are no data, do nothing
if (!res.nodes || res.nodes.length === 0 || !res.links || res.links.length === 0) {
return;
@@ -63,7 +64,6 @@
$onDestroy() {
this.CoarseGraphSubscription.unsubscribe();
- this.XosServiceGraphStore.dispose();
}
private _renderGraph() {