From 650c765d22446ebc853689a4df27cd089d7dcac5 Mon Sep 17 00:00:00 2001 From: Uladzimir Urbanovich Date: Tue, 31 Aug 2021 10:40:47 +0300 Subject: [PATCH] Fix missing property --- ajax-error-parser.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",