From 10a053019dbeb924db95763c23725024afe700b4 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 17 Apr 2016 17:35:17 +0100 Subject: [PATCH] fix thinkos - thanks @richvdh for posthoc review --- src/components/views/settings/Notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/settings/Notifications.js b/src/components/views/settings/Notifications.js index 7ca3fa3a1a..f6536aa038 100644 --- a/src/components/views/settings/Notifications.js +++ b/src/components/views/settings/Notifications.js @@ -554,14 +554,14 @@ module.exports = React.createClass({ }); }).finally(() => { // actually explicitly update our state having been deep-manipulating it - self.state({ + self.setState({ masterPushRule: self.state.masterPushRule, vectorContentRules: self.state.vectorContentRules, vectorPushRules: self.state.vectorPushRules, externalContentRules: self.state.externalContentRules, externalPushRules: self.state.externalPushRules, }); - }); + }).done(); }, _updatePushRuleActions: function(rule, actions, enabled) {