mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 09:58:52 +00:00
Persist condition to conditionSet. Remove extra condition unshift in addCondition method.
This commit is contained in:
parent
63f8fb54d4
commit
eb7efae1cc
@ -109,9 +109,9 @@ export default {
|
||||
|
||||
let conditionDOKeyString = this.openmct.objects.makeKeyString(conditionObj.identifier);
|
||||
let newDO = this.instantiate(conditionObj, conditionDOKeyString);
|
||||
newDO.useCapability('location').setPrimaryLocation(this.parentKeyString);
|
||||
let conditionDO = newDO.useCapability('adapter');
|
||||
|
||||
this.conditions.unshift(conditionDO);
|
||||
this.composition.add(conditionDO);
|
||||
},
|
||||
removeCondition(identifier) {
|
||||
|
Loading…
Reference in New Issue
Block a user