Skip to content

Commit

Permalink
Fix boxplot
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 5, 2021
1 parent 287a173 commit 5113b5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/report/reporters/boxplot/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ const getBlock = function (getStat, quantiles, mini) {

// Retrieve the width of those blocks
const getBlockWidth = function (getStat, combinations, mini) {
return mini
const combinationsA = combinations.filter(isMeasuredCombination)
return mini || combinationsA.length === 0
? 0
: Math.max(
...combinations.map((combination) =>
...combinationsA.map((combination) =>
getCombinationWidth(combination, getStat),
),
)
Expand Down

0 comments on commit 5113b5b

Please sign in to comment.