diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index b39dd109..f79534bf 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -688,7 +688,9 @@ export default { let errorsForField = getErrorsForField(vm, ref); if (errorsForField.length > 0) { //iterate the errorsForField object and add each to return array of errors - window.$gz._.each(errorsForField, function(ve) { + //de-lodash + //window.$gz. _.each(errorsForField, function(ve) { + errorsForField.forEach(function(ve) { let fldErr = ""; let fldErrorCode = parseInt(ve.error); fldErr = @@ -811,6 +813,9 @@ export default { // }); //If ref appears in the formState.serverErrors details collection, remove each one + //m is a mutated array with only the remaining (not removed) elements left + //that did NOT pass the truthy test function + Use Array.filter to do the opposite of this basically as a lodash replacement let m = window.$gz._.remove(vm.formState.serverError.details, function( o ) {