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,