More notifications fixes

Fix another thing I broke during the refactor
This commit is contained in:
Richard van der Hoff 2016-04-14 22:31:40 +01:00
parent 0f0c3d0ca1
commit 5450223cc7
2 changed files with 17 additions and 8 deletions

View file

@ -497,8 +497,8 @@ module.exports = React.createClass({
// Translate the rule actions and its enabled value into vector state
var vectorState;
if (rule) {
for (var stateKey in PushRuleVectorState) {
var state = PushRuleVectorState[stateKey];
for (var stateKey in PushRuleVectorState.states) {
var state = PushRuleVectorState.states[stateKey];
var vectorStateToActions = ruleDefinition.vectorStateToActions[state];
if (!vectorStateToActions) {