Skip to content

Commit

Permalink
#861 | Fix edit program encounter back navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Mar 14, 2023
1 parent f669b96 commit 8018bed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/openchs-android/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ProgramEncounterView extends AbstractComponent {
const encounterName = programEncounter.name || programEncounter.encounterType.name;

let onPreviousCallback = undefined;
if (fromSDV) {
if (fromSDV === true) {
onPreviousCallback = (context) => {
const form = context.getService(FormMappingService).findFormForEncounterType(programEncounter.encounterType, ProgramEncounter.schema.name, programEncounter.subjectType);
let pageNumber = form.numberOfPages + 1;
Expand Down

0 comments on commit 8018bed

Please sign in to comment.