Skip to content

Commit d62639b

Browse files
PVince81backportbot[bot]
authored andcommitted
Make user list pagination more tolerant
In case the server returns more results than expected by the limit, it is now still interpreted as there being more results to query. This situation can happen when there are multiple user backends in place. Signed-off-by: Vincent Petry <[email protected]>
1 parent ee8c356 commit d62639b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/settings/src/store/users.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const actions = {
220220
.then((response) => {
221221
if (Object.keys(response.data.ocs.data.users).length > 0) {
222222
context.commit('appendUsers', response.data.ocs.data.users)
223-
return Object.keys(response.data.ocs.data.users).length === limit
223+
return Object.keys(response.data.ocs.data.users).length >= limit
224224
}
225225
return false
226226
})
@@ -237,7 +237,7 @@ const actions = {
237237
.then((response) => {
238238
if (Object.keys(response.data.ocs.data.users).length > 0) {
239239
context.commit('appendUsers', response.data.ocs.data.users)
240-
return Object.keys(response.data.ocs.data.users).length === limit
240+
return Object.keys(response.data.ocs.data.users).length >= limit
241241
}
242242
return false
243243
})

0 commit comments

Comments
 (0)