Skip to content

Commit

Permalink
fix(DeckGLMap): Don't reset hoveredPump or clickedPump on click or hover
Browse files Browse the repository at this point in the history
  • Loading branch information
vogelino committed Jun 23, 2022
1 parent 7e41b9e commit 74ccfa1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/TreesMap/DeckGLMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,11 @@ class DeckGLMap extends React.Component<DeckGLPropType, DeckGLStateType> {
onHover: (info: PumpEventInfo) => {
this.setState({
hoveredPump: pumpEventInfoToState(info),
clickedPump: null,
});
},
onClick: (info: PumpEventInfo) => {
this.setState({
clickedPump: pumpEventInfoToState(info),
hoveredPump: null,
});
},
}),
Expand Down

0 comments on commit 74ccfa1

Please sign in to comment.