Skip to content

Commit

Permalink
#1520 - happening because of multiple hierarchies not supported corre…
Browse files Browse the repository at this point in the history
…ctly in custom filter. fixed.
  • Loading branch information
petmongrels committed Sep 25, 2024
1 parent 94b03da commit bf76253
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/openchs-android/src/service/AddressLevelService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit bf76253

Please sign in to comment.