Skip to content

Commit 7814901

Browse files
acellamitsmichaeldiego
authored andcommitted
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
1 parent 0db8020 commit 7814901

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/google_map.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,8 @@ export default class GoogleMap extends Component {
760760
});
761761
})
762762
.catch(e => {
763+
// notify callback of load failure
764+
this._onGoogleApiLoaded({ map: null, maps: null });
763765
console.error(e); // eslint-disable-line no-console
764766
throw e;
765767
});

0 commit comments

Comments
 (0)