summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-search/src/reducers/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-search/src/reducers/search.js')
-rw-r--r--packages/gitbook-plugin-search/src/reducers/search.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-search/src/reducers/search.js b/packages/gitbook-plugin-search/src/reducers/search.js
index 9c99634..4bf7b31 100644
--- a/packages/gitbook-plugin-search/src/reducers/search.js
+++ b/packages/gitbook-plugin-search/src/reducers/search.js
@@ -23,6 +23,11 @@ module.exports = (state = SearchState(), action) => {
query: action.query
});
+ case TYPES.UPDATE_RESULTS:
+ return state.merge({
+ results: action.results
+ });
+
case TYPES.REGISTER_HANDLER:
return state.merge({
handlers: state.handlers.set(action.name, action.handler)