Fixed users list issue (#80)

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2020-04-22 18:40:27 -05:00
committed by GitHub
parent 63b430e354
commit 605b80037a
2 changed files with 72 additions and 72 deletions

File diff suppressed because one or more lines are too long

View File

@@ -136,7 +136,7 @@ class Users extends React.Component<IUsersProps, IUsersState> {
error: ""
});
// if we get 0 results, and page > 0 , go down 1 page
if ((!usersList || res.users.length === 0) && page > 0) {
if ((!users || users.length === 0) && page > 0) {
const newPage = page - 1;
this.setState({ page: newPage }, () => {
this.fetchRecords();