From e339d743ed44af436e229a84c3426f2a2ec90226 Mon Sep 17 00:00:00 2001 From: David Tsay Date: Mon, 16 Mar 2020 16:01:12 -0700 Subject: [PATCH] remove uneccessary update call --- src/plugins/condition/ConditionManager.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/plugins/condition/ConditionManager.js b/src/plugins/condition/ConditionManager.js index e10237e062..a74ff2230f 100644 --- a/src/plugins/condition/ConditionManager.js +++ b/src/plugins/condition/ConditionManager.js @@ -34,7 +34,7 @@ export default class ConditionManager extends EventEmitter { this.initialize(); this.stopObservingForChanges = this.openmct.objects.observe(this.conditionSetDomainObject, '*', (newDomainObject) => { - this.update(newDomainObject); + this.conditionSetDomainObject = newDomainObject; }); } @@ -48,15 +48,6 @@ export default class ConditionManager extends EventEmitter { } } - update(newDomainObject) { - this.destroy(); - this.conditionSetDomainObject = newDomainObject; - this.stopObservingForChanges = this.openmct.objects.observe(this.conditionSetDomainObject, '*', (newDO) => { - this.update(newDO); - }); - this.initialize(); - } - updateCondition(conditionConfiguration, index) { let condition = this.conditionClassCollection[index]; condition.update(conditionConfiguration);