diff --git a/src/api/composition/CompositionCollection.js b/src/api/composition/CompositionCollection.js index 5c5fbd64b7..5d76dec87a 100644 --- a/src/api/composition/CompositionCollection.js +++ b/src/api/composition/CompositionCollection.js @@ -177,7 +177,15 @@ define([ CompositionCollection.prototype.load = function () { return this.provider.load(this.domainObject) .then(function (children) { - return Promise.all(children.map(this.onProviderAdd, this)); + return Promise.all(children.map(function (c) { + return this.publicAPI.objects.get(c); + }, this)); + }.bind(this)) + .then(function (childObjects) { + childObjects.forEach(function (c) { + this.add(c, true); + }, this); + return childObjects; }.bind(this)) .then(function (children) { this.emit('load');