From 0b90fdabcf409b5063c88d0f3a3c526c4ec50eb0 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 18 Jul 2019 09:18:08 +1000 Subject: [PATCH] bugfix --- assets/javascripts/discourse/models/custom-wizard.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {