Skip to content

Commit

Permalink
CSCFAIRMETA-1154: Fix project form fields not updating (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
tahme authored Oct 1, 2021
1 parent f6a6ddf commit 9327981
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ class Project extends Component {
}

onProjectFormChange = (field, value) => {
const { details } = this.state
details[field] = value
this.setState({ details })
this.setState(prevState => {
const details = { ...prevState.details }
details[field] = value
return { details }
})
}

onOrganizationFormChange = value => {
Expand Down

0 comments on commit 9327981

Please sign in to comment.