Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-08 19:38:00 +01:00
FIX: Prevent exception for non-subscribers
Dieser Commit ist enthalten in:
Ursprung
f45a117c64
Commit
8751dc297a
3 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
|
@ -94,8 +94,11 @@ export default Controller.extend({
|
|||
},
|
||||
|
||||
setAfterTimeGroupIds() {
|
||||
if (!this.wizard.after_time_groups) {
|
||||
return;
|
||||
}
|
||||
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({
|
||||
afterTimeGroupIds: groups.map((g) => g.id),
|
||||
|
|
|
@ -44,6 +44,7 @@ export default DiscourseRoute.extend({
|
|||
currentStep: wizard.steps[0],
|
||||
currentAction: wizard.actions[0],
|
||||
creating: model.create,
|
||||
afterTimeGroupIds: [],
|
||||
};
|
||||
|
||||
controller.setProperties(props);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
# name: discourse-custom-wizard
|
||||
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
|
||||
# version: 2.9.1
|
||||
# version: 2.9.2
|
||||
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
|
||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||
# contact_emails: development@pavilion.tech
|
||||
|
|
Laden …
In neuem Issue referenzieren