Skip to content

Commit

Permalink
fix: fix error encountered when hovering on hex grid layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris DeMartini committed Feb 10, 2021
1 parent 54d3f73 commit 628bead
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/KeplerGL/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ function getHoverInfo(info, allData) {
? allData[objectHovered.properties.index]
// with upgrade to v2 we now need to the data sub-object for hex and grid layer
: objectHovered.points.map(pt => {
return pt.data;
return pt.data
? pt.data
: pt.source.data;
});
}

Expand Down

0 comments on commit 628bead

Please sign in to comment.