File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -231,8 +231,8 @@ class Rule extends EventEmitter {
231
231
. then ( ( evaluationResult ) => {
232
232
const passes = evaluationResult . result
233
233
condition . factResult = evaluationResult . leftHandSideValue
234
- if ( typeof condition . value === 'object' && condition . value !== null ) {
235
- condition . value . factResult = evaluationResult . rightHandSideValue ;
234
+ if ( typeof condition . value === 'object' && condition . value !== null ) {
235
+ condition . value . factResult = evaluationResult . rightHandSideValue
236
236
}
237
237
condition . result = passes
238
238
return passes
Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ describe('Acceptance', () => {
210
210
result : true ,
211
211
value : {
212
212
fact : 'rule-created-fact' ,
213
+ factResult : 2 ,
213
214
path : '$.array'
214
215
}
215
216
}
You can’t perform that action at this time.
0 commit comments