From 805d1395fc869235f079438b5b4884a521c0230e Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 9 Oct 2017 17:03:52 +0900 Subject: save settings on the fly --- src/settings/reducers/setting.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/settings/reducers') diff --git a/src/settings/reducers/setting.js b/src/settings/reducers/setting.js index 7f32f72..a61c09f 100644 --- a/src/settings/reducers/setting.js +++ b/src/settings/reducers/setting.js @@ -1,6 +1,7 @@ import actions from 'settings/actions'; const defaultState = { + source: '', json: '', value: {} }; @@ -9,6 +10,7 @@ export default function reducer(state = defaultState, action = {}) { switch (action.type) { case actions.SETTING_SET_SETTINGS: return { + source: action.source, json: action.json, value: action.value, }; -- cgit v1.2.3