mirror of
https://github.com/nasa/openmct.git
synced 2025-04-20 17:11:11 +00:00
#338 changed isLink check to check whether location is set
This commit is contained in:
parent
c038ccd0d2
commit
461cc59b3e
@ -53,8 +53,8 @@ define(
|
||||
|
||||
parent.getModel().composition.push(child.getId());
|
||||
|
||||
//Check if the object being composed is a link
|
||||
if (!child.getCapability("location").isLink()) {
|
||||
//If a location is not specified, set it.
|
||||
if (!child.getModel().location) {
|
||||
child.getModel().location = parent.getId();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user