Merge pull request #771 from sharetribe/revert-770-onIdle-without-null

Revert "onIdle should not be called without ref to actual map"
This commit is contained in:
Vesa Luusua 2018-03-20 15:37:14 +02:00 committed by GitHub
commit bba6f8b510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,9 +268,7 @@ export class SearchMapComponent extends Component {
onListingClicked={this.onListingClicked}
onMapLoad={this.onMapLoadHandler}
onIdle={() => {
if (this.googleMap) {
onIdle(this.googleMap);
}
onIdle(this.googleMap);
}}
onCloseAsModal={() => {
if (onCloseAsModal) {