From 70b5c627ca8983b92d4f3fd8b737712edc4333fc Mon Sep 17 00:00:00 2001 From: Joel McKinnon Date: Mon, 24 Feb 2020 16:48:27 -0800 Subject: [PATCH] handle multiple inputs in telemetryCriterion --- src/plugins/condition/criterion/TelemetryCriterion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/condition/criterion/TelemetryCriterion.js b/src/plugins/condition/criterion/TelemetryCriterion.js index 1ac7a2b150..1d35d6bf35 100644 --- a/src/plugins/condition/criterion/TelemetryCriterion.js +++ b/src/plugins/condition/criterion/TelemetryCriterion.js @@ -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); }