Skip to content

Commit

Permalink
Fix failign cypress test with MonthLineGraph accessing .clientWidth
Browse files Browse the repository at this point in the history
Related to #113
  • Loading branch information
sebastienbarbier committed Jun 28, 2023
1 parent 1182e9b commit 742866e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/charts/MonthLineGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function MonthLineGraph({
});

// Define width and height based on parent DOM element
width = +_svg._groups[0][0].clientWidth - MARGIN.left - MARGIN.right;
width = +_svg._groups[0][0]?.clientWidth - MARGIN.left - MARGIN.right;
height =
+width / (100 / parseInt(ratio.replace("%", ""))) -
MARGIN.top -
Expand Down

0 comments on commit 742866e

Please sign in to comment.