Only let the infinite handler fetch more results if the limit is hit
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
d2e63cd31a
commit
824b10956f
|
@ -220,7 +220,7 @@ const actions = {
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (Object.keys(response.data.ocs.data.users).length > 0) {
|
if (Object.keys(response.data.ocs.data.users).length > 0) {
|
||||||
context.commit('appendUsers', response.data.ocs.data.users)
|
context.commit('appendUsers', response.data.ocs.data.users)
|
||||||
return true
|
return Object.keys(response.data.ocs.data.users).length === limit
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
@ -237,7 +237,7 @@ const actions = {
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (Object.keys(response.data.ocs.data.users).length > 0) {
|
if (Object.keys(response.data.ocs.data.users).length > 0) {
|
||||||
context.commit('appendUsers', response.data.ocs.data.users)
|
context.commit('appendUsers', response.data.ocs.data.users)
|
||||||
return true
|
return Object.keys(response.data.ocs.data.users).length === limit
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue