[Addressability] Work around reload again
Work around Angular's page refresh on URL change to avoid unintended effects when chosen view changes (such as tree collapse), WTD-1149.
This commit is contained in:
@@ -47,8 +47,9 @@ define(
|
||||
);
|
||||
|
||||
function updateRoute(domainObject) {
|
||||
var context = domainObject.getCapability('context'),
|
||||
objectPath = context.getPath(),
|
||||
var context = domainObject &&
|
||||
domainObject.getCapability('context'),
|
||||
objectPath = context ? context.getPath() : [],
|
||||
ids = objectPath.map(function (domainObject) {
|
||||
return domainObject.getId();
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user