summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/src/sdc-app/AppStore.js')
-rw-r--r--openecomp-ui/src/sdc-app/AppStore.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/openecomp-ui/src/sdc-app/AppStore.js b/openecomp-ui/src/sdc-app/AppStore.js
index bca750a930..5cab6ae561 100644
--- a/openecomp-ui/src/sdc-app/AppStore.js
+++ b/openecomp-ui/src/sdc-app/AppStore.js
@@ -16,17 +16,20 @@
import { createStore, applyMiddleware, compose } from 'redux';
import Reducers from './Reducers.js';
+import filterUpdater from 'sdc-app/onboarding/onboard/filter/FilterMiddleware.js';
+
const thunk = store => next => action =>
typeof action === 'function'
? action(store.dispatch, store.getState)
: next(action);
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
+
export const storeCreator = initialState =>
createStore(
Reducers,
initialState,
- composeEnhancers(applyMiddleware(thunk))
+ composeEnhancers(applyMiddleware(thunk, filterUpdater))
);
const store = storeCreator();