We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d19a5 commit aa79d72Copy full SHA for aa79d72
src/index.js
@@ -109,7 +109,7 @@ export class Map extends React.Component {
109
if (prevState.currentLocation !== this.state.currentLocation) {
110
this.recenterMap();
111
}
112
- if (this.props.bounds !== prevProps.bounds) {
+ if (this.props.bounds && this.props.bounds !== prevProps.bounds) {
113
this.map.fitBounds(this.props.bounds);
114
115
0 commit comments