mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Plugin reducers working again with reducer name
This commit is contained in:
@@ -45,4 +45,4 @@ export const openViewingOptions = () => ({
|
||||
|
||||
export const closeViewingOptions = () => ({
|
||||
type: actions.CLOSE_VIEWING_OPTIONS
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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}))
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user