We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f626c20 commit 9f3b807Copy full SHA for 9f3b807
1 file changed
src/components/Polygon.js
@@ -25,10 +25,10 @@ export class Polygon extends React.Component {
25
26
componentDidUpdate(prevProps) {
27
if (this.props.map !== prevProps.map) {
28
- if (this.polygon) {
29
- this.polygon.setMap(null);
30
- this.renderPolygon();
31
- }
+ if (this.polygon) {
+ this.polygon.setMap(null);
+ }
+ this.renderPolygon();
32
}
33
34
0 commit comments