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 7e6161cd0f0..2e4585e3597 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 6ea7d9f8fc9..796e6d128c9 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({