From 8f42268e88b9fb17bcc7aa712b4c26d631cebe0c Mon Sep 17 00:00:00 2001 From: jumagura Date: Tue, 27 Dec 2022 12:28:58 -0400 Subject: [PATCH] FIX: Show empty log data when no wizard is selected --- .../discourse/routes/admin-wizards-logs-show.js.es6 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/javascripts/discourse/routes/admin-wizards-logs-show.js.es6 b/assets/javascripts/discourse/routes/admin-wizards-logs-show.js.es6 index 474360ec..e1f53c8f 100644 --- a/assets/javascripts/discourse/routes/admin-wizards-logs-show.js.es6 +++ b/assets/javascripts/discourse/routes/admin-wizards-logs-show.js.es6 @@ -7,6 +7,12 @@ export default DiscourseRoute.extend({ return CustomWizardLogs.list(params.wizardId); }, + afterModel(model) { + if (model === null) { + return this.transitionTo("adminWizardsLogs"); + } + }, + setupController(controller, model) { controller.setProperties({ wizard: model.wizard,