We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecd1203 commit e6ede3bCopy full SHA for e6ede3b
src/plugins/condition/ConditionManager.js
@@ -420,13 +420,11 @@ export default class ConditionManager extends EventEmitter {
420
}
421
422
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
- }
+ // Iterate over all conditions and update their results
+ this.conditions.forEach((condition) => {
+ condition.updateResult(normalizedDatum);
+ });
+}
430
431
updateCurrentCondition(timestamp) {
432
const currentCondition = this.getCurrentCondition();
0 commit comments