reinitialize rule string in forEach

This commit is contained in:
Joel McKinnon 2020-03-11 15:22:17 -07:00
parent efca7c8e58
commit 63feaef988

View File

@ -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) {