Remove componentWillReceiveProps from congratulate
[MAILPOET-2133]
This commit is contained in:
@@ -77,8 +77,10 @@ class Congratulate extends React.Component {
|
|||||||
this.tick();
|
this.tick();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(props) {
|
componentDidUpdate(prevProps) {
|
||||||
this.loadNewsletter(props.match.params.id);
|
if (prevProps.match.params.id !== this.props.match.params.id) {
|
||||||
|
this.loadNewsletter(this.props.match.params.id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tick() {
|
tick() {
|
||||||
|
Reference in New Issue
Block a user