Skip to content

Commit a7321e4

Browse files
committed
Removed quickfix for next PR
1 parent 5377b43 commit a7321e4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/components/GeoPointEditor/GeoPointEditor.react.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ export default class GeoPointEditor extends React.Component {
3333
this.refs.longitude.addEventListener('keypress', this.handleKeyLongitude);
3434
}
3535

36-
componentWillReceiveProps(props) {
37-
if (props.value) {
38-
if (props.value.latitude !== this.state.latitude) {
39-
this.setState({ latitude: props.value.latitude });
40-
}
41-
if (props.value.longitude !== this.state.longitude) {
42-
this.setState({ longitude: props.value.longitude });
43-
}
44-
}
45-
}
46-
4736
componentWillUnmount() {
4837
this.refs.latitude.removeEventListener('keypress', this.handleKeyLatitude);
4938
this.refs.longitude.removeEventListener('keypress', this.handleKeyLongitude);

0 commit comments

Comments
 (0)