Skip to content

Commit

Permalink
Fix Actions and Events
Browse files Browse the repository at this point in the history
Fix recent regression in rule UI.
  • Loading branch information
hobinjk committed May 11, 2018
1 parent e35c992 commit c953e71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions static/js/rules/PropertySelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ PropertySelect.prototype.addOption = function(name, ruleFragment, selected) {
}

const property = getProperty(ruleFragment);
if (!property) {
this.updateOption(elt);
this.elt.appendChild(elt);
return;
}

const stopPropagation = function(e) {
e.stopPropagation();
Expand Down Expand Up @@ -139,6 +144,10 @@ PropertySelect.prototype.updateOption = function(optionElt) {
}

const property = getProperty(ruleFragment);
if (!property) {
return;
}

const fragmentValue = ruleFragment.trigger ?
ruleFragment.trigger.value :
ruleFragment.effect.value;
Expand Down

0 comments on commit c953e71

Please sign in to comment.