Skip to content

Commit 5d9bd0a

Browse files
committed
🔪 obsolete if-else clause
- post #3578 all scattergl traces either set a `tree` or and `ids` array during the calc step.
1 parent 880b7e9 commit 5d9bd0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/traces/scattergl/hover.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ function hoverPoints(pointData, xval, yval, hovermode) {
4343
Math.max(xl, xr), Math.max(yl, yr)
4444
);
4545
}
46-
} else if(stash.ids) {
46+
} else {
4747
ids = stash.ids;
48-
} else return [pointData];
48+
}
4949

5050
// pick the id closest to the point
5151
// note that point possibly may not be found

0 commit comments

Comments
 (0)