Fix error on settings

This commit is contained in:
Shin'ya Ueoka 2018-08-02 21:35:43 +09:00
parent ab9183f575
commit db9f430627
3 changed files with 8 additions and 6 deletions

View file

@ -14,11 +14,10 @@ export default function reducer(state = defaultState, action = {}) {
source: action.source,
json: action.json,
form: action.form,
errors: '',
error: '', };
case actions.SETTING_SHOW_ERROR:
return { ...state,
error: action.text,
error: action.error,
json: action.json, };
case actions.SETTING_SWITCH_TO_FORM:
return { ...state,