Replace componentWillMount with componentDidMount and as required, construct(). Fixes #179

This commit is contained in:
crockwave
2020-06-17 20:42:30 -05:00
parent 7e1457bb8d
commit 24b72b5828
29 changed files with 47 additions and 54 deletions

View File

@@ -55,7 +55,8 @@ class Edit extends React.PureComponent {
setUp: PropTypes.func.isRequired,
};
componentWillMount(nextProps) {
constructor(nextProps) {
super(nextProps);
if (this.props.group) {
this.props.setUp(this.props.group);
}