Skip to content

Commit

Permalink
fix: [bug] show more display no results - EXO-74231 - Meeds-io/meeds#…
Browse files Browse the repository at this point in the history
…2409

Prior to this change, searching for users using advanced filter don't work when clicking "show more",
The commit fix this bug by correcting the search function params.
  • Loading branch information
mkrout committed Sep 23, 2024
1 parent 6773c51 commit 1a41ae2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default {
|| this.filter === 'publisher') {
searchUsersFunction = this.$spaceService.getSpaceMembers(this.keyword, this.offset, this.limitToFetch + 1, this.fieldsToRetrieve, this.filter, this.spaceId, this.abortController.signal);
} else if (this.advancedFilter) {
searchUsersFunction = this.$userService.getUsersByAdvancedFilter(this.advancedFilter, this.offset, this.limitToFetch + 1, this.fieldsToRetrieve,this.filter, this.abortController.signal);
searchUsersFunction = this.$userService.getUsersByAdvancedFilter(this.advancedFilter, this.offset, this.limitToFetch + 1, this.fieldsToRetrieve,this.filter, this.keyword, false, this.abortController.signal);
} else {
searchUsersFunction = this.$userService.getUsers(this.keyword, this.offset, this.limitToFetch + 1, this.fieldsToRetrieve, this.abortController.signal, true);
}
Expand Down Expand Up @@ -232,7 +232,7 @@ export default {
this.abortController = new AbortController();
let filterUsersFunction;
if (this.filter) {
filterUsersFunction = this.$userService.getUsersByAdvancedFilter(profileSettings, this.offset, this.limitToFetch + 1, this.fieldsToRetrieve,this.filter, this.keyword, false, this.abortController.signal);
filterUsersFunction = this.$userService.getUsersByAdvancedFilter(profileSettings, this.offset, this.limitToFetch + 1, this.fieldsToRetrieve, this.filter, this.keyword, false, this.abortController.signal);
}
return filterUsersFunction.then(data => {
const users = data && data.users || [];
Expand Down

0 comments on commit 1a41ae2

Please sign in to comment.