Skip to content

Commit 353a88d

Browse files
committed
check array exists
1 parent f958fca commit 353a88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scattergeo/hover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function hoverPoints(pointData, xval, yval) {
2020
function distFn(d) {
2121
var _lonlat = d.lonlat;
2222

23-
if(_lonlat[0] === BADNUM) return Infinity;
23+
if(!_lonlat || _lonlat[0] === BADNUM) return Infinity;
2424
if(isLonLatOverEdges(_lonlat)) return Infinity;
2525

2626
var pt = project(_lonlat);

0 commit comments

Comments
 (0)