Merge pull request #2091 from tdonohue/fix_2090

Fix for "cannot read properties of undefined" error for Withdrawn Items
This commit is contained in:
Tim Donohue
2023-02-14 09:06:01 -06:00
committed by GitHub

View File

@@ -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));
}