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.
2 parents aca02a0 + 2b46240 commit cfc00d9Copy full SHA for cfc00d9
dist/components/Polygon.js
@@ -112,8 +112,8 @@
112
if (this.props.map !== prevProps.map) {
113
if (this.polygon) {
114
this.polygon.setMap(null);
115
- this.renderPolygon();
116
}
+ this.renderPolygon();
117
118
119
}, {
@@ -206,4 +206,4 @@
206
};
207
208
exports.default = Polygon;
209
-});
+});
src/components/Polygon.js
@@ -25,10 +25,10 @@ export class Polygon extends React.Component {
25
26
componentDidUpdate(prevProps) {
27
28
- if (this.polygon) {
29
- this.polygon.setMap(null);
30
31
- }
+ if (this.polygon) {
+ this.polygon.setMap(null);
+ }
32
33
34
0 commit comments