Skip to content

Commit

Permalink
Avoid rendering of plugins when disabled (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz authored and mbarto committed May 12, 2017
1 parent 7183c93 commit 5b0b8c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/client/components/plugins/PluginsContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const PluginsContainer = React.createClass({
return plugins
.filter((Plugin) => !PluginsUtils.handleExpression(this.getState, this.props.plugins && this.props.plugins.requires, Plugin.hide))
.map(this.getPluginDescriptor)
.filter(plugin => PluginsUtils.filterDisabledPlugins({plugin: plugin && plugin.impl || plugin}, this.getState))
.filter((Plugin) => Plugin && !Plugin.impl.loadPlugin)
.filter(this.filterPlugins)
.map((Plugin) => <Plugin.impl key={Plugin.id}
Expand Down

0 comments on commit 5b0b8c3

Please sign in to comment.