Skip to content

Commit 8018bed

Browse files
committed
#861 | Fix edit program encounter back navigation
1 parent f669b96 commit 8018bed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/openchs-android/package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openchs-android/src/views/program/ProgramEncounterView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ProgramEncounterView extends AbstractComponent {
8383
const encounterName = programEncounter.name || programEncounter.encounterType.name;
8484

8585
let onPreviousCallback = undefined;
86-
if (fromSDV) {
86+
if (fromSDV === true) {
8787
onPreviousCallback = (context) => {
8888
const form = context.getService(FormMappingService).findFormForEncounterType(programEncounter.encounterType, ProgramEncounter.schema.name, programEncounter.subjectType);
8989
let pageNumber = form.numberOfPages + 1;

0 commit comments

Comments
 (0)