Skip to content

Commit 628bead

Browse files
author
Chris DeMartini
committed
fix: fix error encountered when hovering on hex grid layer
1 parent 54d3f73 commit 628bead

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/KeplerGL/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ function getHoverInfo(info, allData) {
6767
? allData[objectHovered.properties.index]
6868
// with upgrade to v2 we now need to the data sub-object for hex and grid layer
6969
: objectHovered.points.map(pt => {
70-
return pt.data;
70+
return pt.data
71+
? pt.data
72+
: pt.source.data;
7173
});
7274
}
7375

0 commit comments

Comments
 (0)