Skip to content

Commit 6ee8cf3

Browse files
committed
Fix recentering when google.maps is not yet available
1 parent cd4534e commit 6ee8cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ export class Map extends React.Component {
191191
const map = this.map;
192192

193193
const {google} = this.props;
194-
const maps = google.maps;
195194

196195
if (!google) return;
196+
const maps = google.maps;
197197

198198
if (map) {
199199
let center = this.state.currentLocation;

0 commit comments

Comments
 (0)