Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-24 02:10:29 +01:00
Guard against users editing wizard JSON directly
Dieser Commit ist enthalten in:
Ursprung
10c30a0c74
Commit
4e4a9c751b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -95,7 +95,7 @@ export default Controller.extend({
|
||||||
|
|
||||||
setAfterTimeGroupIds() {
|
setAfterTimeGroupIds() {
|
||||||
const groups = this.site.groups.filter((g) =>
|
const groups = this.site.groups.filter((g) =>
|
||||||
this.wizard.after_time_groups.includes(g.name)
|
this.wizard.after_time_groups?.includes(g.name)
|
||||||
);
|
);
|
||||||
this.setProperties({
|
this.setProperties({
|
||||||
afterTimeGroupIds: groups.map((g) => g.id),
|
afterTimeGroupIds: groups.map((g) => g.id),
|
||||||
|
|
Laden …
In neuem Issue referenzieren