From 00aedc639152bfa50c0f3e2ca395927c417bfb40 Mon Sep 17 00:00:00 2001 From: Simona Domnisoru Date: Wed, 27 Sep 2023 16:25:48 +0200 Subject: [PATCH] fix: dynamic formId object key --- .../reducers/descriptions/form.reducerDescription.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 85ab6638ee..30dd29a15f 100644 --- a/src/core_modules/capture-core/reducers/descriptions/form.reducerDescription.js +++ b/src/core_modules/capture-core/reducers/descriptions/form.reducerDescription.js @@ -230,7 +230,7 @@ export const formsSectionsFieldsUIDesc = createReducerDescription({ return { ...state, - formId: { + [formId]: { ...state[formId], ...updatedFields, },