diff --git a/src/app/directed_acyclic_graph_raw.ts b/src/app/directed_acyclic_graph_raw.ts index 07e79e7..b10ab33 100644 --- a/src/app/directed_acyclic_graph_raw.ts +++ b/src/app/directed_acyclic_graph_raw.ts @@ -667,6 +667,10 @@ export class DagRaw implements DoCheck, OnInit, OnDestroy { } updateGraphLayoutSync() { + if (!this.visible) { + return; + } + if (!this.nodes.length && !this.groups.length) { this.a11ySortedNodes = []; this.cdr.detectChanges();