FIX: Update user-selector excluded usernames after insert (#8711)

FIX: Update user-selector excluded usernames after insert (#8711)

diff --git a/app/assets/javascripts/discourse/components/user-selector.js.es6 b/app/assets/javascripts/discourse/components/user-selector.js.es6
index fafd0b3ff3..79de2262f3 100644
--- a/app/assets/javascripts/discourse/components/user-selector.js.es6
+++ b/app/assets/javascripts/discourse/components/user-selector.js.es6
@@ -60,8 +60,7 @@ export default TextField.extend({
       allowAny = bool("allowAny"),
       disabled = bool("disabled"),
       allowEmails = bool("allowEmails"),
-      fullWidthWrap = bool("fullWidthWrap"),
-      excludedUsernames = this.excludedUsernames || [];
+      fullWidthWrap = bool("fullWidthWrap");
 
     const allExcludedUsernames = () => {
       // hack works around some issues with allowAny eventing
@@ -71,7 +70,7 @@ export default TextField.extend({
         usernames.concat([currentUser.username]);
       }
 
-      return usernames.concat(excludedUsernames);
+      return usernames.concat(this.excludedUsernames || []);
     };
 
     this.element.addEventListener("paste", this._paste);

GitHub sha: 5df0ef1e