FIX: lears invitedNames on modal closed

FIX: lears invitedNames on modal closed

diff --git a/assets/javascripts/discourse/controllers/invite-user-or-group.js.es6 b/assets/javascripts/discourse/controllers/invite-user-or-group.js.es6
index 976e392..63a6ff3 100644
--- a/assets/javascripts/discourse/controllers/invite-user-or-group.js.es6
+++ b/assets/javascripts/discourse/controllers/invite-user-or-group.js.es6
@@ -12,6 +12,10 @@ export default Controller.extend(ModalFunctionality, {
     this.set("invitedNames", invitedNames);
   },
 
+  onClose() {
+    this.set("invitedNames", null);
+  },
+
   @action
   invite() {
     return ajax(

GitHub sha: 8e794516