Skip to content

Commit

Permalink
fixed loader issue (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-alfresco authored Dec 21, 2021
1 parent 2cb8660 commit 17bd145
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ data class SearchParams(
val listFacetIntervals: SearchFacetIntervals,
val listFacetFields: SearchFacetFields,
val skipCount: Int,
val maxItems: Int = ListViewModel.ITEMS_PER_PAGE
val maxItems: Int = ListViewModel.ITEMS_PER_PAGE,
val executeLoader: Boolean = false
)

class SearchViewModel(
Expand Down Expand Up @@ -378,7 +379,7 @@ class SearchViewModel(
}

override fun refresh() {
params = params.copy(skipCount = 0)
params = params.copy(skipCount = 0, executeLoader = !params.executeLoader)
searchEvents.value = params
}

Expand Down

0 comments on commit 17bd145

Please sign in to comment.