FIX: Incorrect fix for invites breaking when no group is selected (#10202)
This commit is contained in:
parent
9d74cf6a63
commit
52f8eecbb9
|
@ -14,12 +14,13 @@ export default Component.extend({
|
|||
inviteExpiresAt: moment()
|
||||
.add(1, "month")
|
||||
.format("YYYY-MM-DD"),
|
||||
groupIds: [],
|
||||
groupIds: null,
|
||||
allGroups: null,
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.set("groupIds", []);
|
||||
Group.findAll().then(groups => {
|
||||
this.set("allGroups", groups.filterBy("automatic", false));
|
||||
});
|
||||
|
|
|
@ -12,7 +12,7 @@ import { getNativeContact } from "discourse/lib/pwa-utils";
|
|||
|
||||
export default Component.extend({
|
||||
tagName: null,
|
||||
groupIds: [],
|
||||
groupIds: null,
|
||||
allGroups: null,
|
||||
|
||||
inviteModel: alias("panel.model.inviteModel"),
|
||||
|
@ -31,6 +31,7 @@ export default Component.extend({
|
|||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.set("groupIds", []);
|
||||
Group.findAll().then(groups => {
|
||||
this.set("allGroups", groups.filterBy("automatic", false));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue