diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-29 17:20:29 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-29 17:20:29 +0200 |
commit | 6015defe11bbdd3bc008cf194e7e88181fe165d0 (patch) | |
tree | 2dbb26295ada4de37a6a3778d99287ff8ad14e2e /packages/gitbook-core | |
parent | 7f283791544195fa70c51003db9be3f029c014ef (diff) | |
download | gitbook-6015defe11bbdd3bc008cf194e7e88181fe165d0.zip gitbook-6015defe11bbdd3bc008cf194e7e88181fe165d0.tar.gz gitbook-6015defe11bbdd3bc008cf194e7e88181fe165d0.tar.bz2 |
Integrate search in default theme
Diffstat (limited to 'packages/gitbook-core')
-rw-r--r-- | packages/gitbook-core/src/lib/createContext.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-core/src/lib/createContext.js b/packages/gitbook-core/src/lib/createContext.js index 516688e..71017d5 100644 --- a/packages/gitbook-core/src/lib/createContext.js +++ b/packages/gitbook-core/src/lib/createContext.js @@ -26,8 +26,8 @@ function createContext(plugins, initialState) { // Get actions from all plugins const actions = plugins.reduce((accu, plugin) => { - return { ...accu, ...plugin.actions }; - }); + return Object.assign(accu, plugin.actions); + }, {}); const store = Redux.createStore( (state, action) => { |