Only update component state when feature is enabled
This commit is contained in:
parent
07c2010cce
commit
fa6b33d629
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue