Fix react warning when updating unmounted component

[MAILPOET-1597]
This commit is contained in:
Pavel Dohnal
2018-11-06 15:33:15 +01:00
parent 4b94392362
commit 186b4c9a36

View File

@@ -324,8 +324,6 @@ const NewsletterSend = createReactClass({ // eslint-disable-line react/prefer-es
endpoint: 'newsletters',
action: 'save',
data: newsletterData,
}).always(() => {
this.setState({ loading: false });
});
},