diff --git a/assets/javascripts/discourse/models/custom-wizard.js.es6 b/assets/javascripts/discourse/models/custom-wizard.js.es6 index 7e8ad927..eef10686 100644 --- a/assets/javascripts/discourse/models/custom-wizard.js.es6 +++ b/assets/javascripts/discourse/models/custom-wizard.js.es6 @@ -132,7 +132,7 @@ const CustomWizard = Discourse.Model.extend({ } //check if api_body is valid JSON let api_body = a.get('api_body'); - if (api_body != '') { + if (api_body) { try { JSON.parse(api_body); } catch (e) {