Skip to content

Commit

Permalink
using compose to sort the plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Welcher committed Sep 6, 2019
1 parent 0b9b238 commit 247a1a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/plugins/src/components/plugin-area/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ class PluginArea extends Component {

getCurrentPluginsState() {
const plugins = compose(

return {
plugins: map( sortBy( getPlugins(), [ 'priority' ] ), ( { icon, name, render, priority } ) => {
( list ) => map( list, ( { icon, name, render, priority } ) => {
return {
Plugin: render,
context: {
Expand Down

0 comments on commit 247a1a2

Please sign in to comment.