[Summary Widget] Adding a rule without setting anything in the rule causes error #2401 (#2478)

This commit is contained in:
Nikhil 2019-09-18 13:18:55 -07:00 committed by Andrew Henry
parent 7c32700b69
commit 43515ca84e

View File

@ -252,8 +252,8 @@ define([
ruleOrder.push(ruleId);
this.domainObject.configuration.ruleOrder = ruleOrder;
this.updateDomainObject();
this.initRule(ruleId, 'Rule');
this.updateDomainObject();
this.refreshRules();
};
@ -281,8 +281,8 @@ define([
ruleOrder.splice(ruleOrder.indexOf(sourceRuleId) + 1, 0, ruleId);
this.domainObject.configuration.ruleOrder = ruleOrder;
this.domainObject.configuration.ruleConfigById[ruleId] = sourceConfig;
this.updateDomainObject();
this.initRule(ruleId, sourceConfig.name);
this.updateDomainObject();
this.refreshRules();
};