Addresses review comments for conditionals code (#2978)

Conditionals code refactoring

Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
Shefali Joshi
2020-06-17 14:56:36 -07:00
committed by GitHub
parent e9968e3649
commit 38dbf2ccab
16 changed files with 208 additions and 194 deletions

View File

@@ -152,7 +152,8 @@ export default {
},
observeForChanges() {
this.stopObservingForChanges = this.openmct.objects.observe(this.domainObject, 'configuration.conditionCollection', (newConditionCollection) => {
this.conditionCollection = newConditionCollection;
//this forces children to re-render
this.conditionCollection = newConditionCollection.map(condition => condition);
this.updateDefaultCondition();
});
},