This commit is contained in:
2020-10-07 21:37:44 +00:00
parent 9fcbd48a75
commit a049322a20

View File

@@ -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
) {