File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/rules-engine/evaluators Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
8686 array_all : async ( array = [ ] , conditions : Condition , data ) => {
8787 // an AND, but with every resource item
8888 const baseElementPath = data . elementPath
89- for ( let i = 0 ; i < array . length ; i ++ ) {
89+ for ( let i = 0 ; i < array ? .length ; i ++ ) {
9090 if (
9191 ! ( await this . evaluateCondition ( conditions , {
9292 ...data ,
@@ -100,7 +100,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
100100 array_any : async ( array = [ ] , conditions , data ) => {
101101 // an OR, but with every resource item
102102 const baseElementPath = data . elementPath
103- for ( let i = 0 ; i < array . length ; i ++ ) {
103+ for ( let i = 0 ; i < array ? .length ; i ++ ) {
104104 if (
105105 await this . evaluateCondition ( conditions as Condition , {
106106 ...data ,
You can’t perform that action at this time.
0 commit comments