Skip to content

Commit e6ede3b

Browse files
committed
Fix issue in condition evaluation
1 parent ecd1203 commit e6ede3b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/plugins/condition/ConditionManager.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,11 @@ export default class ConditionManager extends EventEmitter {
420420
}
421421

422422
updateConditionResults(normalizedDatum) {
423-
//We want to stop when the first condition evaluates to true.
424-
this.conditions.some((condition) => {
425-
condition.updateResult(normalizedDatum);
426-
427-
return condition.result === true;
428-
});
429-
}
423+
// Iterate over all conditions and update their results
424+
this.conditions.forEach((condition) => {
425+
condition.updateResult(normalizedDatum);
426+
});
427+
}
430428

431429
updateCurrentCondition(timestamp) {
432430
const currentCondition = this.getCurrentCondition();

0 commit comments

Comments
 (0)