Skip to content

Commit

Permalink
fix(settings): Prevent extraneous user list requests
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Oct 16, 2023
1 parent e12eb13 commit da59890
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/settings/src/components/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ export default {

methods: {
async handleScrollEnd() {
// Do not load more users when all have already been loaded
if (this.users.length % 25 !== 0) {
return
}
await this.loadUsers()
},

Expand Down

0 comments on commit da59890

Please sign in to comment.