From fcf1b3bd5ffef72937b04c7f9a775235c3f72bcb Mon Sep 17 00:00:00 2001 From: Simona Domnisoru Date: Thu, 3 Oct 2024 12:22:59 +0200 Subject: [PATCH] chore: variable rename Co-authored-by: Tony Valle <79843014+superskip@users.noreply.github.com> --- .../reducers/descriptions/form.reducerDescription.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core_modules/capture-core/reducers/descriptions/form.reducerDescription.js b/src/core_modules/capture-core/reducers/descriptions/form.reducerDescription.js index bbd8b865a7..5e5441ab5b 100644 --- a/src/core_modules/capture-core/reducers/descriptions/form.reducerDescription.js +++ b/src/core_modules/capture-core/reducers/descriptions/form.reducerDescription.js @@ -215,8 +215,7 @@ export const formsSectionsFieldsUIDesc = createReducerDescription({ const updatedFields = Object.keys(assignEffects).reduce((acc, id) => { if (formSectionFields[id]) { - const effectsForId = assignEffects[id]; - const effect = effectsForId[0]; + const effect = assignEffects[id][0]; acc[id] = { valid: effect.valid, errorData: effect.errorData,