From fff89a6384db202a2fc8841f725d12a83d25f831 Mon Sep 17 00:00:00 2001 From: David Tsay Date: Wed, 25 Mar 2020 17:36:27 -0700 Subject: [PATCH 1/2] delete unsubscribe method on destroy --- src/plugins/condition/StyleRuleManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/condition/StyleRuleManager.js b/src/plugins/condition/StyleRuleManager.js index 9bfb357e36..362886d0f6 100644 --- a/src/plugins/condition/StyleRuleManager.js +++ b/src/plugins/condition/StyleRuleManager.js @@ -115,6 +115,7 @@ export default class StyleRuleManager extends EventEmitter { if (this.stopProvidingTelemetry) { this.stopProvidingTelemetry(); } + delete this.stopProvidingTelemetry; this.conditionSetIdentifier = undefined; } From d2b7407674dd8a9fb7a3ef42261d00998efa74eb Mon Sep 17 00:00:00 2001 From: David Tsay Date: Wed, 25 Mar 2020 17:41:33 -0700 Subject: [PATCH 2/2] add request for LAD data --- src/plugins/condition/StyleRuleManager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/condition/StyleRuleManager.js b/src/plugins/condition/StyleRuleManager.js index 362886d0f6..c09a291090 100644 --- a/src/plugins/condition/StyleRuleManager.js +++ b/src/plugins/condition/StyleRuleManager.js @@ -48,6 +48,8 @@ export default class StyleRuleManager extends EventEmitter { this.stopProvidingTelemetry(); } this.openmct.objects.get(this.conditionSetIdentifier).then((conditionSetDomainObject) => { + this.openmct.telemetry.request(conditionSetDomainObject) + .then(output => this.handleConditionSetResultUpdated(output)); this.stopProvidingTelemetry = this.openmct.telemetry.subscribe(conditionSetDomainObject, output => this.handleConditionSetResultUpdated(output)); }); }