Skip to content

Commit

Permalink
Fix state setting on subscriber modal unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Dec 19, 2018
1 parent b461f51 commit 72cf9e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frontend/my/src/Subscribers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand All @@ -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 })
Expand Down

0 comments on commit 72cf9e2

Please sign in to comment.