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()
|
inviteExpiresAt: moment()
|
||||||
.add(1, "month")
|
.add(1, "month")
|
||||||
.format("YYYY-MM-DD"),
|
.format("YYYY-MM-DD"),
|
||||||
groupIds: [],
|
groupIds: null,
|
||||||
allGroups: null,
|
allGroups: null,
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
|
this.set("groupIds", []);
|
||||||
Group.findAll().then(groups => {
|
Group.findAll().then(groups => {
|
||||||
this.set("allGroups", groups.filterBy("automatic", false));
|
this.set("allGroups", groups.filterBy("automatic", false));
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { getNativeContact } from "discourse/lib/pwa-utils";
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
tagName: null,
|
tagName: null,
|
||||||
groupIds: [],
|
groupIds: null,
|
||||||
allGroups: null,
|
allGroups: null,
|
||||||
|
|
||||||
inviteModel: alias("panel.model.inviteModel"),
|
inviteModel: alias("panel.model.inviteModel"),
|
||||||
|
@ -31,6 +31,7 @@ export default Component.extend({
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
|
this.set("groupIds", []);
|
||||||
Group.findAll().then(groups => {
|
Group.findAll().then(groups => {
|
||||||
this.set("allGroups", groups.filterBy("automatic", false));
|
this.set("allGroups", groups.filterBy("automatic", false));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue