Skip to content

Commit

Permalink
#1525 - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Sep 30, 2024
1 parent 2f7329a commit df08f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openchs-android/src/views/filter/FiltersView.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class FilterView extends AbstractComponent {
}

renderProgramEncounterGroup() {
const allowedProgramUuidsForViewProgram = this.context.getService(ProgramService).getAllowedViewPrograms(this.state.subjectType).map(program => program.uuid);
const allowedProgramUuidsForViewProgram = this.context.getService(ProgramService).getAllowedViewPrograms(this.state.selectedSubjectType).map(program => program.uuid);
const programFilter = <ProgramFilter
onToggle={(name, uuid) => this.onProgramSelect(name, uuid)}
visits={_.filter(this.state.programs, program => this.privilegeService.hasAllPrivileges() || _.includes(allowedProgramUuidsForViewProgram, program.uuid))}
Expand Down

0 comments on commit df08f36

Please sign in to comment.