]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only let the infinite handler fetch more results if the limit is hit
authorJulius Härtl <jus@bitgrid.net>
Wed, 16 Dec 2020 09:42:17 +0000 (10:42 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 16 Dec 2020 12:59:40 +0000 (12:59 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/settings/src/store/users.js

index 3f87f5b004078aca26260f5e6483859817935797..41f2f4e4e8d0f664308b90555ec664a63085dedf 100644 (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 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
                        })