mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
Merge pull request #2091 from tdonohue/fix_2090
Fix for "cannot read properties of undefined" error for Withdrawn Items
This commit is contained in:
@@ -39,7 +39,7 @@ export class DSOBreadcrumbsService implements BreadcrumbsProviderService<ChildHA
|
||||
return this.linkService.resolveLink(key, followLink(propertyName))[propertyName].pipe(
|
||||
find((parentRD: RemoteData<ChildHALResource & DSpaceObject>) => parentRD.hasSucceeded || parentRD.statusCode === 204),
|
||||
switchMap((parentRD: RemoteData<ChildHALResource & DSpaceObject>) => {
|
||||
if (hasValue(parentRD.payload)) {
|
||||
if (hasValue(parentRD) && hasValue(parentRD.payload)) {
|
||||
const parent = parentRD.payload;
|
||||
return this.getBreadcrumbs(parent, getDSORoute(parent));
|
||||
}
|
||||
|
Reference in New Issue
Block a user