Fix bug with telemetry disappearing

This commit is contained in:
Joshi 2020-03-13 12:50:06 -07:00
parent 8f05c57d1a
commit 09bfd80f69

View File

@ -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) {