Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 170374c

Browse files
author
Manish Jangir
committed
Made the usage of immutable toJS strategy in createForms initial state when we pass the whole
reducer function whose return state immutable Map.
1 parent 2ac059c commit 170374c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reducers/forms-reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function createFormCombiner(strategy = defaultStrategy) {
5252
}
5353

5454
modelReducers[formKey] = strategy.modeled(formValue, subModel);
55-
initialFormState[formKey] = initialState;
55+
initialFormState[formKey] = strategy.toJS(initialState);
5656
} else {
5757
modelReducers[formKey] = strategy.modelReducer(subModel, formValue);
5858
initialFormState[formKey] = strategy.toJS(formValue);

0 commit comments

Comments
 (0)