Skip to content

Commit 52372b5

Browse files
committed
Fix multivar brushing bug.
1 parent 41d578d commit 52372b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/herbie/ErrorPlot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ function ErrorPlot() {
575575
const firstPoint = brushedPoints.length > 0 ? brushedPoints[0] : null;
576576
const lastPoint = brushedPoints.length > 0 ? brushedPoints[brushedPoints.length - 1] : null;
577577

578-
const firstFloat = firstPoint !== null ? ordinals.ordinalToFloat(firstPoint) : null;
579-
const lastFloat = lastPoint !== null ? ordinals.ordinalToFloat(lastPoint) : null;
578+
const firstFloat = firstPoint !== null ? firstPoint.map(v => ordinals.ordinalToFloat(v)) : null;
579+
const lastFloat = lastPoint !== null ? lastPoint.map(v => ordinals.ordinalToFloat(v)) : null;
580580

581581
setSelectedSubset({
582582
selection: event.selection,

0 commit comments

Comments
 (0)