From 7d8d062cf358202f2b05fdb1ecbaa058ea503f5b Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:23:53 +0100 Subject: [PATCH] Fix redux-thunk --- core/src/redux/reducers.js | 4 ++-- core/src/store.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/redux/reducers.js b/core/src/redux/reducers.js index 8b9235c8..8e444b29 100644 --- a/core/src/redux/reducers.js +++ b/core/src/redux/reducers.js @@ -1,4 +1,4 @@ -import {combineReducers} from 'redux' +import { combineReducers } from 'redux' import app from './app/app-reducer.js' import config from './config/config-reducer.js' @@ -8,4 +8,4 @@ export default combineReducers({ user, app, config -}) +}) \ No newline at end of file diff --git a/core/src/store.js b/core/src/store.js index 141f4d6e..e6a1ca3a 100644 --- a/core/src/store.js +++ b/core/src/store.js @@ -1,13 +1,13 @@ import {applyMiddleware, compose, createStore} from 'redux' -import thunk from 'redux-thunk' +import { thunk } from 'redux-thunk' -import reducers from './redux/reducers.js' +import rootReducer from './redux/reducers.js' const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose export const store = createStore( - reducers, + rootReducer, composeEnhancers( applyMiddleware(thunk) ) -) +) \ No newline at end of file