From 2501c0cd0f530450bb7d720711178a0bbd53b1e1 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 24 Mar 2020 22:17:26 +0100 Subject: [PATCH] FIX: user-selector was not excluding currentUser (#9266) concat doesn't mutate the variable so it has to be assigned. --- app/assets/javascripts/discourse/components/user-selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/user-selector.js b/app/assets/javascripts/discourse/components/user-selector.js index 3d796d03d62..d362c60e623 100644 --- a/app/assets/javascripts/discourse/components/user-selector.js +++ b/app/assets/javascripts/discourse/components/user-selector.js @@ -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 || []);