Replace componentWillMount with componentDidMount and as required, construct(). Fixes #179
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user