diff options
Diffstat (limited to 'src/content/reducers/setting.js')
-rw-r--r-- | src/content/reducers/setting.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/reducers/setting.js b/src/content/reducers/setting.js index a23027f..a49db6d 100644 --- a/src/content/reducers/setting.js +++ b/src/content/reducers/setting.js @@ -8,7 +8,7 @@ const defaultState = { export default function reducer(state = defaultState, action = {}) { switch (action.type) { case actions.SETTING_SET: - return Object.assign({}, action.value); + return { ...action.value }; default: return state; } |