Skip to content

Commit

Permalink
fix: fix plugins resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Jan 18, 2022
1 parent d1ef85a commit ec76f9f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions plugins/PluginMenuResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import plugins from '../plugins.config'
export function processMenus() {
let pluginMenus = []
plugins
.filter(item => item.enabled)
.map((item) => item.metadataFile)
.forEach((path) => {
pluginMenus = pluginMenus.concat(require(`${path}`).default.menus)
Expand All @@ -15,7 +14,6 @@ export function processMenus() {
export function processRoutes() {
let pluginRoutes = []
plugins
.filter(item => item.enabled)
.map((item) => item.metadataFile)
.forEach((path) => {
pluginRoutes = pluginRoutes.concat(require(`${path}`).default.routes)
Expand Down
1 change: 0 additions & 1 deletion plugins/PluginReducersResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import reducerRegistry from '../app/redux/reducers/ReducerRegistry'

async function process() {
const metadataFilePath = plugins
.filter(item => item.enabled)
.map((item) => item.metadataFile)
let pluginReducers = []
await metadataFilePath.forEach(async (path) => {
Expand Down
1 change: 0 additions & 1 deletion plugins/PluginSagasResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import plugins from '../plugins.config'
function process() {
let pluginSagas = [];
plugins
.filter(item => item.enabled)
.map((item) => (item.metadataFile)).forEach(async (path) => {
pluginSagas = [...pluginSagas, ...(require(`${path}`)).default.sagas]
})
Expand Down

0 comments on commit ec76f9f

Please sign in to comment.