Skip to content

Commit

Permalink
#1226 | Fix non-existent variable
Browse files Browse the repository at this point in the history
This change will ensure that editing of program enrolments do not
change the GPS coordinates where they were enrolled.
  • Loading branch information
vinayvenu committed Dec 19, 2023
1 parent 797d065 commit 747fad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ProgramEnrolmentView extends AbstractComponent {
render() {
General.logDebug(this.viewName(), 'render');
this.displayMessage(this.props.message);
return <ProgramFormComponent editing={this.state.isNewEnrolment}
return <ProgramFormComponent editing={this.state.isNewEntity}
state={this.state}
context={ProgramEnrolmentView.usageContext}
backFunction={() => this.onAppHeaderBack()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProgramFormComponent extends AbstractComponent {
context: PropTypes.object.isRequired,
state: PropTypes.object.isRequired,
backFunction: PropTypes.func.isRequired,
editing: PropTypes.bool
editing: PropTypes.bool.isRequired
};

constructor(props, context) {
Expand Down

0 comments on commit 747fad5

Please sign in to comment.