diff --git a/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 b/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 index b616b5be..b9dbd90f 100644 --- a/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 +++ b/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6 @@ -8,6 +8,12 @@ export default DiscourseRoute.extend({ return CustomWizardAdmin.submissions(params.wizardId); }, + afterModel(model) { + if (model === null) { + return this.transitionTo("adminWizardsSubmissions"); + } + }, + setupController(controller, model) { const { fields, submissions } = formatModel(model);