Destroy condition manager when the ConditionSet vue is destroyed

This commit is contained in:
Joshi 2020-02-25 15:06:45 -08:00
parent 78cf75323f
commit 3109c8d825

View File

@ -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();