mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 12:03:21 +00:00
Revert change to remove short-circuit logic
This commit is contained in:
parent
c460932c81
commit
e6952f1859
@ -421,8 +421,10 @@ export default class ConditionManager extends EventEmitter {
|
||||
|
||||
updateConditionResults(normalizedDatum) {
|
||||
//We want to stop when the first condition evaluates to true.
|
||||
this.conditions.forEach((condition) => {
|
||||
this.conditions.some((condition) => {
|
||||
condition.updateResult(normalizedDatum);
|
||||
|
||||
return condition.result === true;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user