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:
parent
772583b9c3
commit
2501c0cd0f
|
@ -72,7 +72,7 @@ export default TextField.extend({
|
||||||
let usernames = single ? [] : selected;
|
let usernames = single ? [] : selected;
|
||||||
|
|
||||||
if (currentUser && excludeCurrentUser) {
|
if (currentUser && excludeCurrentUser) {
|
||||||
usernames.concat([currentUser.username]);
|
usernames = usernames.concat([currentUser.username]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return usernames.concat(this.excludedUsernames || []);
|
return usernames.concat(this.excludedUsernames || []);
|
||||||
|
|
Loading…
Reference in New Issue