Plugin reducers working again with reducer name

This commit is contained in:
Belen Curcio
2017-06-06 17:29:56 -03:00
parent c3360aa020
commit 1c7ad9a8ac
4 changed files with 5 additions and 7 deletions
@@ -45,4 +45,4 @@ export const openViewingOptions = () => ({
export const closeViewingOptions = () => ({
type: actions.CLOSE_VIEWING_OPTIONS
});
});
+1 -3
View File
@@ -11,9 +11,7 @@ import {loadTranslations} from 'coral-framework/services/i18n';
export const pluginReducers = merge(
...plugins
.filter((o) => o.module.reducer)
.map(o => ({
[o.plugin] : o.module.reducer
}))
.map((o) => ({[o.module.reducer.name] : o.module.reducer}))
);
/**
+1 -1
View File
@@ -3,7 +3,7 @@ import user from './user';
import asset from './asset';
import {reducer as commentBox} from '../../coral-plugin-commentbox';
import {pluginReducers} from '../helpers/plugins';
console.log(pluginReducers)
console.log(pluginReducers);
export default {
auth,
user,
@@ -4,7 +4,7 @@ const initialState = {
export default function offTopic (state = initialState, action) {
switch (action.type) {
default :
return state;
default :
return state;
}
}