Skip to content

Commit

Permalink
WIP (#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-hashimoto committed Mar 28, 2024
1 parent 5ca6312 commit 1ba14a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/organizations/OrganizationEditContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class OrganizationEditContainer extends Component {
edrms_record: ''
},
formIsValid: false,
edrmsRecordError: ''
edrmsRecordError: '',
formIsDirty: false
}

this.submitted = false
Expand Down Expand Up @@ -92,7 +93,8 @@ class OrganizationEditContainer extends Component {
loadPropsToFieldState (props) {
if (
Object.keys(props.organization.details).length !== 0 &&
!this.submitted
!this.submitted &&
!this.state.formIsDirty
) {
const org = props.organization.details
let addr = {}
Expand Down Expand Up @@ -178,6 +180,7 @@ class OrganizationEditContainer extends Component {
}
this.setState({
fields: fieldState,
formIsDirty: true
})
}

Expand Down

0 comments on commit 1ba14a7

Please sign in to comment.