From 6d510db2db878101fb65ee1d4e2f07c92b9868ec Mon Sep 17 00:00:00 2001 From: manuroe Date: Mon, 11 Jan 2016 17:32:37 +0100 Subject: [PATCH] PPushRules settings: Fixed React warnings --- src/components/views/settings/Notifications.js | 7 +++---- .../vector/css/vector-web/views/settings/Notifications.css | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/views/settings/Notifications.js b/src/components/views/settings/Notifications.js index 8fc992e3fd..f6e48159c0 100644 --- a/src/components/views/settings/Notifications.js +++ b/src/components/views/settings/Notifications.js @@ -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 ( - {title} + + {title} +