diff --git a/static/src/components/setting/index.vue b/static/src/components/setting/index.vue index 1b95401a..336947b1 100644 --- a/static/src/components/setting/index.vue +++ b/static/src/components/setting/index.vue @@ -248,7 +248,7 @@ export default { const users = isIds ? usersOrIds.map(id => this.users[id]) : usersOrIds; // Sort the users by their last name. - return users.slice().sort((a, b) => { + return users.filter(u => u).slice().sort((a, b) => { return a.last_name.localeCompare(b.last_name, undefined, { sensitivity: 'base' }); }); },