Persist condition to conditionSet. Remove extra condition unshift in addCondition method.

This commit is contained in:
Joshi 2020-01-07 11:56:24 -08:00
parent 63f8fb54d4
commit eb7efae1cc

View File

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