error handling and cleanup

This commit is contained in:
Zack Hoherchak 2022-04-08 17:15:42 -04:00
commit 1c5e07ee4b
5 changed files with 152 additions and 64 deletions

View file

@ -54,7 +54,7 @@ class Utils {
const { name, type } = element;
const value = jsn[name];
const isCheckOrRadio = type === 'checkbox' || type === 'radio';
console.log(element.type)
if (isCheckOrRadio) {
const isSingle = value === element.value;
if (isSingle || (Array.isArray(value) && value.includes(element.value))) {