FIX: Invites when no group is selected (#10201)

FIX: Invites when no group is selected (#10201)

diff --git a/app/assets/javascripts/discourse/app/components/invite-link-panel.js b/app/assets/javascripts/discourse/app/components/invite-link-panel.js
index 7e6161c..2e4585e 100644
--- a/app/assets/javascripts/discourse/app/components/invite-link-panel.js
+++ b/app/assets/javascripts/discourse/app/components/invite-link-panel.js
@@ -14,7 +14,7 @@ export default Component.extend({
   inviteExpiresAt: moment()
     .add(1, "month")
     .format("YYYY-MM-DD"),
-  groupIds: null,
+  groupIds: [],
   allGroups: null,
 
   init() {
@@ -49,7 +49,7 @@ export default Component.extend({
   reset() {
     this.setProperties({
       maxRedemptionAllowed: 5,
-      groupIds: null
+      groupIds: []
     });
 
     this.inviteModel.setProperties({
diff --git a/app/assets/javascripts/discourse/app/components/invite-panel.js b/app/assets/javascripts/discourse/app/components/invite-panel.js
index 6ea7d9f..796e6d1 100644
--- a/app/assets/javascripts/discourse/app/components/invite-panel.js
+++ b/app/assets/javascripts/discourse/app/components/invite-panel.js
@@ -12,7 +12,7 @@ import { getNativeContact } from "discourse/lib/pwa-utils";
 
 export default Component.extend({
   tagName: null,
-  groupIds: null,
+  groupIds: [],
   allGroups: null,
 
   inviteModel: alias("panel.model.inviteModel"),
@@ -292,7 +292,7 @@ export default Component.extend({
       hasCustomMessage: false,
       customMessage: null,
       invitingExistingUserToTopic: false,
-      groupIds: null
+      groupIds: []
     });
 
     this.inviteModel.setProperties({

GitHub sha: 9d74cf6a

This commit appears in #10201 which was merged by markvanlan.