From 747fad51a7f7aeda8088d86b8b41bd3e6854eb49 Mon Sep 17 00:00:00 2001 From: Vinay Venu Date: Tue, 19 Dec 2023 15:28:19 +0530 Subject: [PATCH] #1226 | Fix non-existent variable This change will ensure that editing of program enrolments do not change the GPS coordinates where they were enrolled. --- .../openchs-android/src/views/program/ProgramEnrolmentView.js | 2 +- .../openchs-android/src/views/program/ProgramFormComponent.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/openchs-android/src/views/program/ProgramEnrolmentView.js b/packages/openchs-android/src/views/program/ProgramEnrolmentView.js index 4e4a84c1b..dd2cf40c5 100644 --- a/packages/openchs-android/src/views/program/ProgramEnrolmentView.js +++ b/packages/openchs-android/src/views/program/ProgramEnrolmentView.js @@ -91,7 +91,7 @@ class ProgramEnrolmentView extends AbstractComponent { render() { General.logDebug(this.viewName(), 'render'); this.displayMessage(this.props.message); - return this.onAppHeaderBack()} diff --git a/packages/openchs-android/src/views/program/ProgramFormComponent.js b/packages/openchs-android/src/views/program/ProgramFormComponent.js index 77ae8d6ce..ec8520c85 100644 --- a/packages/openchs-android/src/views/program/ProgramFormComponent.js +++ b/packages/openchs-android/src/views/program/ProgramFormComponent.js @@ -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) {