From 1dc4f9f6bb6fe4d281a42f93ed0c1f1a34a998cf Mon Sep 17 00:00:00 2001 From: Joshi Date: Thu, 16 Jan 2020 15:44:59 -0800 Subject: [PATCH] Fixes this for the handleConditionUpdated function --- src/plugins/condition/Condition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/condition/Condition.js b/src/plugins/condition/Condition.js index 0457b8840f..cc1a1ed39c 100644 --- a/src/plugins/condition/Condition.js +++ b/src/plugins/condition/Condition.js @@ -98,7 +98,7 @@ export default class ConditionClass extends EventEmitter { addCriterion(criterionDefinition) { let criterionDefinitionWithId = this.generateCriterion(criterionDefinition || null); let criterion = new TelemetryCriterion(criterionDefinitionWithId, this.openmct); - criterion.on('criterionUpdated', this.handleCriterionUpdated); + criterion.on('criterionUpdated', (obj) => this.this.handleCriterionUpdated(obj)); if (!this.criteria) { this.criteria = []; }