X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9b29a65b9f9f02b338445c12b5d08b292f797c1c..bf5bf5faa1f61a2b78ff6153daff70a7bb08e939:/src/store/store.ts diff --git a/src/store/store.ts b/src/store/store.ts index f842b0c6..04813b1c 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -8,6 +8,7 @@ import thunkMiddleware from 'redux-thunk'; import { History } from "history"; import { authReducer } from "./auth/auth-reducer"; +import { configReducer } from "./config/config-reducer"; import { dataExplorerReducer } from './data-explorer/data-explorer-reducer'; import { detailsPanelReducer } from './details-panel/details-panel-reducer'; import { contextMenuReducer } from './context-menu/context-menu-reducer'; @@ -61,7 +62,8 @@ import { ApiClientAuthorizationMiddlewareService } from '~/store/api-client-auth const composeEnhancers = (process.env.NODE_ENV === 'development' && - window && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({trace: true, traceLimit: 25})) || + window && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && + window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ trace: true, traceLimit: 25 })) || compose; export type RootState = ReturnType>; @@ -129,6 +131,7 @@ export function configureStore(history: History, services: ServiceRepository): R const createRootReducer = (services: ServiceRepository) => combineReducers({ auth: authReducer(services), + config: configReducer, collectionPanel: collectionPanelReducer, collectionPanelFiles: collectionPanelFilesReducer, contextMenu: contextMenuReducer,