From f88b8ce757f62486d5843e1ea0191db1e5c61194 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 18 Oct 2016 17:09:45 +0200 Subject: Improve how errors are displayed in the UI --- app/assets/javascripts/components/store/configureStore.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/components/store') 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)); }; -- cgit