From 63feaef98856d47862cd6debb2574a166b73054e Mon Sep 17 00:00:00 2001 From: Joel McKinnon Date: Wed, 11 Mar 2020 15:22:17 -0700 Subject: [PATCH] reinitialize rule string in forEach --- src/plugins/condition/components/Condition.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/condition/components/Condition.vue b/src/plugins/condition/components/Condition.vue index ec7d1e5294..31a1f97e2f 100644 --- a/src/plugins/condition/components/Condition.vue +++ b/src/plugins/condition/components/Condition.vue @@ -232,6 +232,7 @@ export default { let conjunction = ''; summary = 'When '; config.criteria.forEach((criterion, index) => { + rule = ''; if (criterion.operation && criterion.input.length) { rule += `${criterion.telemetry.name} value ${this.findDescription(criterion.operation, criterion.input)}` if (index === config.criteria.length - 1) {