0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

FIX: Show an empty submission list of no wizard is selected

Dieser Commit ist enthalten in:
jumagura 2022-12-27 12:30:27 -04:00
Ursprung 8f42268e88
Commit be3a479270

Datei anzeigen

@ -8,6 +8,12 @@ export default DiscourseRoute.extend({
return CustomWizardAdmin.submissions(params.wizardId); return CustomWizardAdmin.submissions(params.wizardId);
}, },
afterModel(model) {
if (model === null) {
return this.transitionTo("adminWizardsSubmissions");
}
},
setupController(controller, model) { setupController(controller, model) {
const { fields, submissions } = formatModel(model); const { fields, submissions } = formatModel(model);