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> {
86
86
array_all : async ( array = [ ] , conditions : Condition , data ) => {
87
87
// an AND, but with every resource item
88
88
const baseElementPath = data . elementPath
89
- for ( let i = 0 ; i < array . length ; i ++ ) {
89
+ for ( let i = 0 ; i < array ? .length ; i ++ ) {
90
90
if (
91
91
! ( await this . evaluateCondition ( conditions , {
92
92
...data ,
@@ -100,7 +100,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
100
100
array_any : async ( array = [ ] , conditions , data ) => {
101
101
// an OR, but with every resource item
102
102
const baseElementPath = data . elementPath
103
- for ( let i = 0 ; i < array . length ; i ++ ) {
103
+ for ( let i = 0 ; i < array ? .length ; i ++ ) {
104
104
if (
105
105
await this . evaluateCondition ( conditions as Condition , {
106
106
...data ,
You can’t perform that action at this time.
0 commit comments