Skip to content

Commit

Permalink
Merge branch 'develop' into integration
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelric-capgemini committed Dec 18, 2024
2 parents e628d2a + e8db3d1 commit 00a08df
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ export class VisualisationInterfaceDiagramComponent implements OnInit {

try {
const el = document.getElementsByTagName('app-visualisation-interface-diagram')[0];
const rect = el.getBoundingClientRect();
width = rect.width - margin;
height = rect.height - margin;
if (el) {
const rect = el.getBoundingClientRect();
width = rect.width - margin;
height = rect.height - margin;
}

} catch (error) {
console.error(error);
this.snackbarService.showError(error);
}

this.graph = graphviz('#graphviz-graph', {
Expand Down

0 comments on commit 00a08df

Please sign in to comment.