diff --git a/ajax-error-parser.js b/ajax-error-parser.js index 732813a..e4365de 100644 --- a/ajax-error-parser.js +++ b/ajax-error-parser.js @@ -71,7 +71,7 @@ export function getErrorsArray(errors, keyTranslate = defaultKeyTranslate) { if (typeof value === 'object') { return Object .entries(value) - .map(([nestedField, ]) => + .map(([nestedField, nestedValue]) => `Field ${translatedField} (${keyTranslate(nestedField)}) - ${getErrorsArray(nestedValue, keyTranslate)}`); } }) diff --git a/package.json b/package.json index 31e31c8..eaac4ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "description": "Polymer element and behavior for handling ajax requests", "name": "@unicef-polymer/etools-ajax", - "version": "4.3.0", + "version": "4.3.1", "homepage": "https://github.com/unicef-polymer/etools-ajax", "repository": { "type": "git",