Skip to content

Commit

Permalink
🔪 obsolete if-else clause
Browse files Browse the repository at this point in the history
- post #3578 all scattergl traces either set a `tree` or
  and `ids` array during the calc step.
  • Loading branch information
etpinard committed Sep 23, 2019
1 parent 880b7e9 commit 5d9bd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traces/scattergl/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ function hoverPoints(pointData, xval, yval, hovermode) {
Math.max(xl, xr), Math.max(yl, yr)
);
}
} else if(stash.ids) {
} else {
ids = stash.ids;
} else return [pointData];
}

// pick the id closest to the point
// note that point possibly may not be found
Expand Down

0 comments on commit 5d9bd0a

Please sign in to comment.