We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393eca8 commit 6cddf32Copy full SHA for 6cddf32
src/components/Marker.js
@@ -26,7 +26,9 @@ export class Marker extends React.Component {
26
componentDidUpdate(prevProps) {
27
if ((this.props.map !== prevProps.map) ||
28
(this.props.position !== prevProps.position)) {
29
- this.marker.setMap(null);
+ if (this.marker) {
30
+ this.marker.setMap(null);
31
+ }
32
this.renderMarker();
33
}
34
0 commit comments