Skip to content

Commit

Permalink
[Bug]: FIxed issue with map popover object being null (#1384)
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Macri <macri.giuseppe@gmail.com>
  • Loading branch information
heshan0131 committed Dec 18, 2020
1 parent fc2fb04 commit 35bf90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/layer-utils.js
Expand Up @@ -87,7 +87,7 @@ export function getLayerHoverProp({
// deckgl layer to kepler-gl layer
const layer = layers[overlay.props.idx];

if (layer && layer.getHoverData && layersToRender[layer.id]) {
if (object && layer && layer.getHoverData && layersToRender[layer.id]) {
// if layer is visible and have hovered data
const {
config: {dataId}
Expand Down

0 comments on commit 35bf90a

Please sign in to comment.