File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/rules-engine/evaluators Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,9 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
84
84
}
85
85
return true
86
86
} ,
87
- array_all : async ( array , conditions : Condition , data ) => {
87
+ array_all : async ( array = [ ] , conditions : Condition , data ) => {
88
88
// an AND, but with every resource item
89
89
const baseElementPath = data . elementPath
90
-
91
90
for ( let i = 0 ; i < array . length ; i ++ ) {
92
91
if (
93
92
! ( await this . evaluateCondition ( conditions , {
@@ -99,9 +98,8 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
99
98
}
100
99
return true
101
100
} ,
102
- array_any : async ( array , conditions , data ) => {
101
+ array_any : async ( array = [ ] , conditions , data ) => {
103
102
// an OR, but with every resource item
104
-
105
103
const baseElementPath = data . elementPath
106
104
for ( let i = 0 ; i < array . length ; i ++ ) {
107
105
if (
You can’t perform that action at this time.
0 commit comments