Addresses review comments for conditionals code (#2978)
Conditionals code refactoring Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
@@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user