Skip to content

Commit

Permalink
fix: [ANDROAPP-6285] Org. Unit dialog crashes on device rotation
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan authored and xavimolloy committed Jul 4, 2024
1 parent 89fe62d commit c64697c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,12 @@ class DataValueRepository(

val dataElements = d2.dataElementModule().dataElements()
.byUid().`in`(dataSetElementsInDataset?.map { it.dataElement().uid() })
.orderByDisplayName(RepositoryScope.OrderByDirection.ASC)
.orderByName(RepositoryScope.OrderByDirection.ASC)
.blockingGet()

Flowable.just(
dataElements.map { transformDataElement(it, dataSetElementsInDataset) }
.filter { it.categoryComboUid() == categoryCombo.uid() }
.sortedBy { it.displayFormName()?.lowercase() },
.filter { it.categoryComboUid() == categoryCombo.uid() },
)
}
}
Expand Down

0 comments on commit c64697c

Please sign in to comment.