diff --git a/client/components/Users/UserOverview.jsx b/client/components/Users/UserOverview.jsx index a55603ff..00b9b5f5 100644 --- a/client/components/Users/UserOverview.jsx +++ b/client/components/Users/UserOverview.jsx @@ -61,7 +61,9 @@ class UserOverview extends React.Component { } handleUsersPageChange(page) { - this.props.getUsersOnPage(page); + const query = this.props && this.props.fetchQuery; + const filter = this.state && this.state.selectedFilter && this.state.selectedFilter.filterBy; + this.props.getUsersOnPage(page, query, filter); } renderActions(user, index) { diff --git a/client/containers/Users.jsx b/client/containers/Users.jsx index 3e7679a1..e722f388 100644 --- a/client/containers/Users.jsx +++ b/client/containers/Users.jsx @@ -29,8 +29,8 @@ class Users extends React.Component { this.props.fetchUsers('', '', true, process.env.PER_PAGE); } - getUsersOnPage(page) { - this.props.fetchUsers('', '', true, process.env.PER_PAGE, page); + getUsersOnPage(page, query = '', field = '') { + this.props.fetchUsers(query, field, true, process.env.PER_PAGE, page); } render() {