diff --git a/platform/representation/src/MCTRepresentation.js b/platform/representation/src/MCTRepresentation.js index b68a6ad81e..98b97a841c 100644 --- a/platform/representation/src/MCTRepresentation.js +++ b/platform/representation/src/MCTRepresentation.js @@ -157,6 +157,9 @@ define( if (!domainObject) { return []; } + if (!domainObject.hasCapability('context')) { + return [domainObject.getId()]; + } return domainObject.getCapability('context') .getPath().map(function (pathObject) { return pathObject.getId();