diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 17:09:45 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 17:09:45 +0200 |
commit | f88b8ce757f62486d5843e1ea0191db1e5c61194 (patch) | |
tree | 79109cf3cd77240152c041641bb77915fcfc553d /app/assets/javascripts/components/store | |
parent | aea151a0ded4f7cc3a16901727931aff78a8b050 (diff) |
Improve how errors are displayed in the UI
Diffstat (limited to 'app/assets/javascripts/components/store')
-rw-r--r-- | app/assets/javascripts/components/store/configureStore.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/store/configureStore.jsx b/app/assets/javascripts/components/store/configureStore.jsx index 89f498217..3d03d4c19 100644 --- a/app/assets/javascripts/components/store/configureStore.jsx +++ b/app/assets/javascripts/components/store/configureStore.jsx @@ -2,9 +2,10 @@ import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import appReducer from '../reducers'; import { loadingBarMiddleware } from 'react-redux-loading-bar'; +import errorsMiddleware from '../middleware/errors'; export default function configureStore(initialState) { return createStore(appReducer, initialState, compose(applyMiddleware(thunk, loadingBarMiddleware({ promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'], - })), window.devToolsExtension ? window.devToolsExtension() : f => f)); + }), errorsMiddleware()), window.devToolsExtension ? window.devToolsExtension() : f => f)); }; |