notify call back of load failure (#479)

When the google  fails to load due to no internet, the  call back should be notified so that appropriate UI can be shown
This commit is contained in:
Acellam Guy 2017-12-28 13:42:30 +03:00 committed by Michael Diego
parent 0db8020122
commit 7814901c64

View File

@ -760,6 +760,8 @@ export default class GoogleMap extends Component {
});
})
.catch(e => {
// notify callback of load failure
this._onGoogleApiLoaded({ map: null, maps: null });
console.error(e); // eslint-disable-line no-console
throw e;
});