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

This commit is contained in:
Mark VanLandingham 2020-07-09 11:41:17 -05:00 committed by GitHub
parent cb1f891392
commit 9d74cf6a63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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({

View File

@ -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({