Skip to content

A platform for community discussion. Free, open, simple.

FIX: correctly excludes current user in user-chooser (#8928)

Joffrey JAFFEUXadbff5835d15
diff --git a/app/assets/javascripts/select-kit/components/user-chooser.js.es6 b/app/assets/javascripts/select-kit/components/user-chooser.js.es6
index b84e97ca9a4..ae8d75c5ec0 100644
--- a/app/assets/javascripts/select-kit/components/user-chooser.js.es6
+++ b/app/assets/javascripts/select-kit/components/user-chooser.js.es6
@@ -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 || []);