FIX: Invites when no group is selected (#10201)
This commit is contained in:
parent
cb1f891392
commit
9d74cf6a63
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue