From eb415a75686c9f5176647701280a4097e3dc71d3 Mon Sep 17 00:00:00 2001 From: Tobias Lindehoff Date: Fri, 13 Jul 2018 15:58:18 +0200 Subject: [PATCH] fix(src/withGoogleMap): crash when google is not defined --- src/withGoogleMap.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/withGoogleMap.jsx b/src/withGoogleMap.jsx index a4bf3c41..c72a9d3a 100644 --- a/src/withGoogleMap.jsx +++ b/src/withGoogleMap.jsx @@ -46,15 +46,16 @@ export function withGoogleMap(BaseComponent) { } handleComponentMount(node) { - if (this.state.map || node === null) { - return - } warning( `undefined` !== typeof google, `Make sure you've put a