From bf76253ca36a98092e7b2ece032a66c5f860d62d Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Wed, 25 Sep 2024 16:34:19 +0530 Subject: [PATCH] #1520 - happening because of multiple hierarchies not supported correctly in custom filter. fixed. --- packages/openchs-android/src/service/AddressLevelService.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/openchs-android/src/service/AddressLevelService.js b/packages/openchs-android/src/service/AddressLevelService.js index c0fb0844e..f3770097a 100644 --- a/packages/openchs-android/src/service/AddressLevelService.js +++ b/packages/openchs-android/src/service/AddressLevelService.js @@ -14,8 +14,7 @@ class AddressLevelService extends BaseAddressLevelService { } getAllDisplayAddresses(selectedAddresses) { - let allDisplayAddresses = this.findAll(this.getSchema()) - .filtered('voided = false and typeUuid == $0', this.maxTypeUUID()).map(_.identity); + let allDisplayAddresses = this.highestLevel(); const sortedAddresses = _.orderBy(selectedAddresses, 'level', 'desc'); const thisService = this; sortedAddresses.forEach(selectedAddress => {