mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: correctly excludes current user in user-chooser (#8928)
This commit is contained in:
parent
3e89774908
commit
adbff5835d
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export default MultiSelectComponent.extend({
|
|||
let usernames = makeArray(this.value);
|
||||
|
||||
if (this.currentUser && options.excludeCurrentUser) {
|
||||
usernames.concat([this.currentUser.username]);
|
||||
usernames = usernames.concat([this.currentUser.username]);
|
||||
}
|
||||
|
||||
return usernames.concat(options.excludedUsernames || []);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue