mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Improve user list rendering perf by not resorting after every add (#26282)
The call to UserList.add() was wrong and was passing "user.lastLogin" as the sort argument which would cause the list to be resorted over and over again for every added item after loading the next page of users.
This commit is contained in:
parent
a27633b140
commit
706317a715
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ var UserList = {
|
|||
if(UserList.has(user.name)) {
|
||||
return true;
|
||||
}
|
||||
var $tr = UserList.add(user, user.lastLogin, false, user.backend);
|
||||
var $tr = UserList.add(user, false);
|
||||
trs.push($tr);
|
||||
loadedUsers++;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue