mirror of
https://github.com/nasa/openmct.git
synced 2025-04-25 05:20:10 +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) {
|
function addClonesToParent(self) {
|
||||||
return self.parent.getCapability("composition")
|
return self.parent.getCapability("composition")
|
||||||
.add(self.firstClone.getId())
|
.add(self.firstClone)
|
||||||
.then(function (addedClone) {
|
.then(function (addedClone) {
|
||||||
return self.parent.getCapability("persistence").persist()
|
return self.parent.getCapability("persistence").persist()
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user