High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix state setting on subscriber modal unmount
Kailash Nadh72cf9e2d9bc6
diff --git a/frontend/my/src/Subscribers.js b/frontend/my/src/Subscribers.jsindex c133aa9a..e0688740 100644--- a/frontend/my/src/Subscribers.js+++ b/frontend/my/src/Subscribers.js@@ -59,7 +59,6 @@ class CreateFormDef extends React.PureComponent {notification["success"]({ message: "Subscriber added", description: `${values["email"]} added` })this.props.fetchRecords()this.props.onClose()- this.setState({ modalWaiting: false })}).catch(e => {notification["error"]({ message: "Error", description: e.message })this.setState({ modalWaiting: false })@@ -74,7 +73,6 @@ class CreateFormDef extends React.PureComponent {// Reload the table.this.props.fetchRecords()this.props.onClose()- this.setState({ modalWaiting: false })}).catch(e => {notification["error"]({ message: "Error", description: e.message })this.setState({ modalWaiting: false })