Merge pull request #25443 from nextcloud/bugfix/25442/fix-settings-users-pagination-tolerance

Make user list pagination more tolerant
This commit is contained in:
Roeland Jago Douma 2021-02-04 09:34:36 +01:00 committed by GitHub
commit 7f5549d94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -220,7 +220,7 @@ const actions = {
.then((response) => {
if (Object.keys(response.data.ocs.data.users).length > 0) {
context.commit('appendUsers', response.data.ocs.data.users)
return Object.keys(response.data.ocs.data.users).length === limit
return Object.keys(response.data.ocs.data.users).length >= limit
}
return false
})
@ -237,7 +237,7 @@ const actions = {
.then((response) => {
if (Object.keys(response.data.ocs.data.users).length > 0) {
context.commit('appendUsers', response.data.ocs.data.users)
return Object.keys(response.data.ocs.data.users).length === limit
return Object.keys(response.data.ocs.data.users).length >= limit
}
return false
})