Fix Form store update bug

This commit is contained in:
cyril lopez 2017-08-30 11:41:11 +02:00
parent 96b664f8f7
commit 9b1dad7ffe

View File

@ -65,7 +65,8 @@ function formReducer(state = initialState, action) {
.set('modifiedDataEdit', action.data);
case RESET_DID_FETCH_MODEL_PROP:
return state
.set('didFetchModel', true);
.set('didFetchModel', true)
.set('isFormSet', false);
case SET_ATTRIBUTE_FORM: {
if (state.get('isFormSet')) {
return state.set('form', Map(action.form));