Skip to content

Commit

Permalink
Fix register search
Browse files Browse the repository at this point in the history
Signed-off-by: Elly Kitoto <[email protected]>
  • Loading branch information
ellykits committed Jan 22, 2025
1 parent 31ab062 commit 7a07b8e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ constructor(

// Handle pagination via code for resources filtered by REL tag. The list size should be
// (currentPage + 1).times(pageSize).
val data = registerDataMap.values.toList()
return if (filterByRelatedEntityLocationMetaTag && !loadAll) {
getPage(registerDataMap.values.toList(), currentPage, pageSize)
getPage(data, currentPage, pageSize)
} else {
registerDataMap.values as List
data
}
}

Expand Down

0 comments on commit 7a07b8e

Please sign in to comment.