On resize it's getting undefined minZoom (#864)

This commit is contained in:
Afzal Hossain 2020-07-30 11:34:06 +02:00 committed by GitHub
parent 307476f02e
commit a65411f9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -761,9 +761,7 @@ export default class GoogleMap extends Component {
maps.event.addListener(map, 'idle', () => {
if (this.resetSizeOnIdle_) {
this._setViewSize();
const currMinZoom = this._computeMinZoom(
this.props.options.minZoom
);
const currMinZoom = this._computeMinZoom(options.minZoom);
if (currMinZoom !== this.minZoom_) {
this.minZoom_ = currMinZoom;