Skip to content

Commit b1199ba

Browse files
committed
added safeguard to only register edgehandles once
1 parent 8349a82 commit b1199ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/src/app/dashboard/graph-view/graph-view/graph-view.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export class GraphViewComponent implements OnInit, OnDestroy {
2020
private config: GraphConfig;
2121

2222
constructor(private graphViewService: GraphViewService, public dialog: MatDialog) {
23-
24-
cytoscape.use(edgehandles);
23+
if (!(cytoscape as any).edgehandles) {
24+
cytoscape.use(edgehandles);
25+
}
2526
}
2627

2728

0 commit comments

Comments
 (0)