From 1087facb54fc91bb0a5c70cf42494033eb3dd485 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 5 Oct 2020 13:40:51 +1100 Subject: [PATCH] Wrap import in wizard check --- .../javascripts/wizard/initializers/custom-wizard-step.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/javascripts/wizard/initializers/custom-wizard-step.js.es6 b/assets/javascripts/wizard/initializers/custom-wizard-step.js.es6 index efca6d7c..14c08fa4 100644 --- a/assets/javascripts/wizard/initializers/custom-wizard-step.js.es6 +++ b/assets/javascripts/wizard/initializers/custom-wizard-step.js.es6 @@ -1,10 +1,9 @@ -import CustomWizard from "../models/custom"; - export default { name: "custom-wizard-step", initialize(app) { if (window.location.pathname.indexOf("/w/") < 0) return; + const CustomWizard = requirejs("discourse/plugins/discourse-custom-wizard/wizard/models/custom").default; const StepModel = requirejs("wizard/models/step").default; const StepComponent = requirejs("wizard/components/wizard-step").default; const ajax = requirejs("wizard/lib/ajax").ajax;