Remove componentWillReceiveProps from congratulate

[MAILPOET-2133]
This commit is contained in:
Pavel Dohnal
2019-06-25 16:49:46 +02:00
committed by M. Shull
parent 65653b4589
commit 2ff2a753bf

View File

@@ -77,8 +77,10 @@ class Congratulate extends React.Component {
this.tick();
}
componentWillReceiveProps(props) {
this.loadNewsletter(props.match.params.id);
componentDidUpdate(prevProps) {
if (prevProps.match.params.id !== this.props.match.params.id) {
this.loadNewsletter(this.props.match.params.id);
}
}
tick() {