From 09bfd80f691aefa0c5c0a2ab8bd913828f276e40 Mon Sep 17 00:00:00 2001 From: Joshi Date: Fri, 13 Mar 2020 12:50:06 -0700 Subject: [PATCH] Fix bug with telemetry disappearing --- src/plugins/condition/components/ConditionCollection.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index ed39d20b49..f5a1acace8 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -109,7 +109,7 @@ export default { if(this.conditionManager) { this.conditionManager.destroy(); } - if (typeof this.stopObservingForChanges === 'function') { + if (this.stopObservingForChanges) { this.stopObservingForChanges(); } }, @@ -124,8 +124,8 @@ export default { }, methods: { observeForChanges() { - this.stopObservingForChanges = this.openmct.objects.observe(this.domainObject, 'configuration.conditionCollection', (newConditionCollection) => { - this.conditionCollection = newConditionCollection; + this.stopObservingForChanges = this.openmct.objects.observe(this.domainObject, '*', (newDomainObject) => { + this.conditionCollection = newDomainObject.configuration.conditionCollection; }); }, setMoveIndex(index) {