mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 13:06:03 +10:00
onIdle should not be called without ref to actual map
This commit is contained in:
parent
fa78037482
commit
f1362896c9
1 changed files with 3 additions and 1 deletions
|
|
@ -268,7 +268,9 @@ export class SearchMapComponent extends Component {
|
|||
onListingClicked={this.onListingClicked}
|
||||
onMapLoad={this.onMapLoadHandler}
|
||||
onIdle={() => {
|
||||
onIdle(this.googleMap);
|
||||
if (this.googleMap) {
|
||||
onIdle(this.googleMap);
|
||||
}
|
||||
}}
|
||||
onCloseAsModal={() => {
|
||||
if (onCloseAsModal) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue