mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
[Create] Add object, not ID
Add domain object, and not its identifier, when suing add method of composition from CopyTask, for consistency with test expectations.
This commit is contained in:
parent
0f231838ec
commit
cb53e1aaee
@ -105,7 +105,7 @@ define(
|
||||
*/
|
||||
function addClonesToParent(self) {
|
||||
return self.parent.getCapability("composition")
|
||||
.add(self.firstClone.getId())
|
||||
.add(self.firstClone)
|
||||
.then(function (addedClone) {
|
||||
return self.parent.getCapability("persistence").persist()
|
||||
.then(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user