mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
Modified composition policies to consider object instances instead of types. Fixes #669
This commit is contained in:
@ -14,8 +14,9 @@ define(
|
||||
}
|
||||
|
||||
CompositionModelPolicy.prototype.allow = function (candidate) {
|
||||
var candidateType = candidate.getCapability('type');
|
||||
return Array.isArray(
|
||||
(candidate.getInitialModel() || {}).composition
|
||||
(candidateType.getInitialModel() || {}).composition
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user