mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
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;
|
||||
|
||||
if (currentUser && excludeCurrentUser) {
|
||||
usernames.concat([currentUser.username]);
|
||||
usernames = usernames.concat([currentUser.username]);
|
||||
}
|
||||
|
||||
return usernames.concat(this.excludedUsernames || []);
|
||||
|
Loading…
x
Reference in New Issue
Block a user