From 3109c8d825d7ae42a2a5bac8d4b3ef5f15dbe92b Mon Sep 17 00:00:00 2001 From: Joshi Date: Tue, 25 Feb 2020 15:06:45 -0800 Subject: [PATCH] Destroy condition manager when the ConditionSet vue is destroyed --- src/plugins/condition/components/ConditionCollection.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index 1c1c509498..c4369f587a 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -110,6 +110,7 @@ export default { this.composition.off('remove', this.removeTelemetryObject); if(this.conditionManager) { this.conditionManager.off('conditionSetResultUpdated', this.handleOutputUpdated); + this.conditionManager.destroy(); } if (typeof this.stopObservingForChanges === 'function') { this.stopObservingForChanges();