Only update component state when feature is enabled

This commit is contained in:
Erik Johnston 2019-01-10 16:54:08 +00:00
parent 07c2010cce
commit fa6b33d629

View File

@ -101,7 +101,9 @@ module.exports = React.createClass({
},
_rateLimitedUpdate: new RateLimitedFunc(function() {
this.setState({counters: this._computeCounters()})
if (SettingsStore.isFeatureEnabled("feature_state_counters")) {
this.setState({counters: this._computeCounters()});
}
}, 500),
_computeCounters: function() {