1
0
Fork 0

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);