changed computeResults

This commit is contained in:
Joel McKinnon 2020-02-28 13:51:46 -08:00
parent 83d08ae369
commit 5498ba8e1e

View File

@ -78,9 +78,7 @@ export default class TelemetryCriterion extends EventEmitter {
let params = [];
params.push(data[this.metadata]);
if (this.input instanceof Array && this.input.length) {
params.push(this.input[0]);
} else {
params.push(this.input);
this.input.forEach(input => params.push(input));
}
if (typeof comparator === 'function') {
result = comparator(params);