From ba71aa5d12e03eb444a227aea5a0a3b499e9441d Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Fri, 30 Aug 2024 11:36:14 +0530 Subject: [PATCH] #1382 - fix: use group subject uuid correctly in custom filter --- packages/openchs-android/src/service/CustomFilterService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/openchs-android/src/service/CustomFilterService.js b/packages/openchs-android/src/service/CustomFilterService.js index 671c9d1c5..73868894b 100644 --- a/packages/openchs-android/src/service/CustomFilterService.js +++ b/packages/openchs-android/src/service/CustomFilterService.js @@ -203,8 +203,8 @@ class CustomFilterService extends BaseService { } } - groupSubjectQuery(selectedOptions) { - return _.map(selectedOptions, ({groupSubjectUUID}) => ` (voided = false AND groupSubject.uuid = '${groupSubjectUUID}') `).join(" OR "); + groupSubjectQuery(selectedGroupSubjects) { + return _.map(selectedGroupSubjects, (selectedGroupSubject) => ` (voided = false AND groupSubject.uuid = '${selectedGroupSubject.uuid}') `).join(" OR "); } getConceptFilterQueryFunction(concept, selectedOptions, widget) {