Skip to content

Commit

Permalink
avniproject/avni-webapp#1345 | Fix DeclarativeRule.isEmpty logic
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Oct 10, 2024
1 parent fce1569 commit c722879
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rules/declarative/DeclarativeRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ class DeclarativeRule {
}

isEmpty() {
return false;
return _.chain(this)
.get('actions[0].actionType')
.isEmpty()
.value();
}

addNewAction() {
Expand Down

0 comments on commit c722879

Please sign in to comment.