Redux: Fixed function adding a new reducer (#21575)

This commit is contained in:
Torkel Ödegaard 2020-01-17 16:05:08 +01:00 committed by GitHub
parent 66d8871415
commit 5af7b15c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,8 @@ const rootReducers = {
const addedReducers = {};
export const addReducer = (addedReducer: any) => {
Object.assign(addedReducers, ...addedReducer);
export const addReducer = (newReducers: any) => {
Object.assign(addedReducers, newReducers);
};
export const createRootReducer = () => {