mirror of
https://github.com/nasa/openmct.git
synced 2025-05-12 13:33:14 +00:00
changed computeResults
This commit is contained in:
parent
83d08ae369
commit
5498ba8e1e
@ -78,9 +78,7 @@ export default class TelemetryCriterion extends EventEmitter {
|
|||||||
let params = [];
|
let params = [];
|
||||||
params.push(data[this.metadata]);
|
params.push(data[this.metadata]);
|
||||||
if (this.input instanceof Array && this.input.length) {
|
if (this.input instanceof Array && this.input.length) {
|
||||||
params.push(this.input[0]);
|
this.input.forEach(input => params.push(input));
|
||||||
} else {
|
|
||||||
params.push(this.input);
|
|
||||||
}
|
}
|
||||||
if (typeof comparator === 'function') {
|
if (typeof comparator === 'function') {
|
||||||
result = comparator(params);
|
result = comparator(params);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user