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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 || []);