PPushRules settings: Fixed React warnings

This commit is contained in:
manuroe 2016-01-11 17:32:37 +01:00
parent ee13dd7b6c
commit 6d510db2db
2 changed files with 4 additions and 5 deletions

View File

@ -77,7 +77,6 @@ module.exports = React.createClass({
MatrixClientPeg.get().setPushRuleEnabled('global', rule.rule.kind, rule.rule.rule_id, (newPushRuleState !== PushRuleState.OFF)).done(function() {
self._refreshFromServer();
self.forceUpdate();
});
}
},
@ -191,15 +190,15 @@ module.exports = React.createClass({
self.setState({
phase: self.phases.DISPLAY
});
self.forceUpdate();
});
},
renderNotifRulesTableRow: function(title, className, pushRuleState, disabled) {
return (
<tr key = {className}>
<th class="">{title}</th>
<th>
{title}
</th>
<th>
<input className= {className + "-" + PushRuleState.ON}