diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-16 10:42:17 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-16 12:38:33 +0100 |
commit | bde49772886112413c91b4455eb5e2241a4983da (patch) | |
tree | de688b8deeb33dd93a6cefdbbeb1a6e30539cb0f /apps/settings/src/store | |
parent | 915d4375126990cbb3189832f59e0d7730e1a867 (diff) | |
download | nextcloud-server-bde49772886112413c91b4455eb5e2241a4983da.tar.gz nextcloud-server-bde49772886112413c91b4455eb5e2241a4983da.zip |
Only let the infinite handler fetch more results if the limit is hit
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/settings/src/store')
-rw-r--r-- | apps/settings/src/store/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js index 3f87f5b0040..41f2f4e4e8d 100644 --- a/apps/settings/src/store/users.js +++ b/apps/settings/src/store/users.js @@ -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 true + 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 true + return Object.keys(response.data.ocs.data.users).length === limit } return false }) |