Skip to content

Commit a65411f

Browse files
authored
On resize it's getting undefined minZoom (google-map-react#864)
1 parent 307476f commit a65411f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/google_map.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,7 @@ export default class GoogleMap extends Component {
761761
maps.event.addListener(map, 'idle', () => {
762762
if (this.resetSizeOnIdle_) {
763763
this._setViewSize();
764-
const currMinZoom = this._computeMinZoom(
765-
this.props.options.minZoom
766-
);
764+
const currMinZoom = this._computeMinZoom(options.minZoom);
767765

768766
if (currMinZoom !== this.minZoom_) {
769767
this.minZoom_ = currMinZoom;

0 commit comments

Comments
 (0)