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

Commit

Permalink
Made the usage of immutable toJS strategy in createForms initial stat…
Browse files Browse the repository at this point in the history
…e when we pass the whole

reducer function whose return state immutable Map.
  • Loading branch information
Manish Jangir committed Oct 18, 2018
1 parent 2ac059c commit 170374c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/forms-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function createFormCombiner(strategy = defaultStrategy) {
}

modelReducers[formKey] = strategy.modeled(formValue, subModel);
initialFormState[formKey] = initialState;
initialFormState[formKey] = strategy.toJS(initialState);
} else {
modelReducers[formKey] = strategy.modelReducer(subModel, formValue);
initialFormState[formKey] = strategy.toJS(formValue);
Expand Down

0 comments on commit 170374c

Please sign in to comment.