Skip to content

Commit

Permalink
fix(GoogleMapLoader): handle unmount ref case
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodion authored and tomchentw committed May 29, 2016
1 parent 1c51023 commit 334c5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleMapLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class GoogleMapLoader extends Component {
};

mountGoogleMap(domEl) {
if (this.state.map) {
if (this.state.map || domEl === null) {
return;
}
const { children, ...mapProps } = this.props.googleMapElement.props;
Expand Down

0 comments on commit 334c5c9

Please sign in to comment.