From 67aefdddff73f0ab785ded2e66193460c38def7c Mon Sep 17 00:00:00 2001 From: SteveGT96 Date: Fri, 18 Oct 2024 15:53:23 +0100 Subject: [PATCH] fix: Fix unit tests --- package.json | 3 --- src/libraries/formDataHandling/functions.ts | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1401ca5c3..46eef8123 100644 --- a/package.json +++ b/package.json @@ -148,8 +148,5 @@ }, "_moduleAliases": { "@": "./dist" - }, - "volta": { - "node": "20.18.0" } } diff --git a/src/libraries/formDataHandling/functions.ts b/src/libraries/formDataHandling/functions.ts index 45b396f49..24f666f06 100644 --- a/src/libraries/formDataHandling/functions.ts +++ b/src/libraries/formDataHandling/functions.ts @@ -32,6 +32,8 @@ export const getFromFields = ( acc[key] = fields[key].isArray ? JSON.parse(fields[key][fieldAddress]) : fields[key][fieldAddress]; + } else { + acc[key] = fields[key][fieldAddress]; } return acc; }, {});