FIX: user-selector was not excluding currentUser (#9266)

concat doesn't mutate the variable so it has to be assigned.
This commit is contained in:
Joffrey JAFFEUX
2020-03-24 22:17:26 +01:00
committed by GitHub
parent 772583b9c3
commit 2501c0cd0f

View File

@@ -72,7 +72,7 @@ export default TextField.extend({
let usernames = single ? [] : selected;
if (currentUser && excludeCurrentUser) {
usernames.concat([currentUser.username]);
usernames = usernames.concat([currentUser.username]);
}
return usernames.concat(this.excludedUsernames || []);