Skip to content

Commit

Permalink
Fix bug in enum plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xinjie-zhang committed Mar 17, 2022
1 parent 50a6022 commit 14b1abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/portlet-plugin-enum/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const _ = require('lodash')
module.exports = (portlet) => {
portlet.allEnums = {}
portlet.on('decorateResponse', (req, res) => {
res.locals._allEnums = portletServer.allEnums
res.locals._allEnums = portlet.allEnums
res.enums = name => {
return res.locals._allEnums[name]
}
Expand Down

0 comments on commit 14b1abb

Please sign in to comment.