handle multiple inputs in telemetryCriterion

This commit is contained in:
Joel McKinnon 2020-02-24 16:48:27 -08:00
parent 8f87cc78e8
commit d46310ca7d

View File

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