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 (#4051)

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.

(cherry picked from commit 7c48e6d)
  • Loading branch information
mkrout authored and Jihed525 committed Sep 25, 2024
1 parent 102f568 commit a9f53d7
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 a9f53d7

Please sign in to comment.