From f7c1185644572266f5324c2da1430b575dac93c6 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 24 Mar 2020 21:45:28 +1100 Subject: [PATCH] Update group validation --- assets/javascripts/wizard/initializers/custom.js.es6 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/wizard/initializers/custom.js.es6 b/assets/javascripts/wizard/initializers/custom.js.es6 index e972b556..fa6717c3 100644 --- a/assets/javascripts/wizard/initializers/custom.js.es6 +++ b/assets/javascripts/wizard/initializers/custom.js.es6 @@ -228,6 +228,7 @@ export default { 'user-selector', 'text-only', 'composer', + 'category', 'group' ]; @@ -257,12 +258,10 @@ export default { if (type === 'checkbox') { valid = val; - } else if (type === 'category') { - valid = val && val.toString().length > 0; } else if (type === 'upload') { valid = val && val.id > 0; } else if (StandardFieldValidation.indexOf(type) > -1) { - valid = val && val.length > 0; + valid = val && val.toString().length > 0; } }