From c3360aa020264875027cbf6663bc633a5596589d Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Tue, 6 Jun 2017 17:23:35 -0300 Subject: [PATCH] Plugin reducers working again --- client/coral-framework/helpers/plugins.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/coral-framework/helpers/plugins.js b/client/coral-framework/helpers/plugins.js index 3e54ee5fa..997c5c29d 100644 --- a/client/coral-framework/helpers/plugins.js +++ b/client/coral-framework/helpers/plugins.js @@ -8,11 +8,12 @@ import plugins from 'pluginsConfig'; import {getDefinitionName, mergeDocuments} from 'coral-framework/utils'; import {loadTranslations} from 'coral-framework/services/i18n'; -console.log(plugins) export const pluginReducers = merge( ...plugins .filter((o) => o.module.reducer) - .map((o) => ({...o.module.reducer})) + .map(o => ({ + [o.plugin] : o.module.reducer + })) ); /**