Skip to content

Commit

Permalink
merge integration to validation
Browse files Browse the repository at this point in the history
  • Loading branch information
b4pm-devops committed Dec 18, 2024
2 parents 1d14c25 + 00a08df commit 1ebb25c
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 1ebb25c

Please sign in to comment.