From e2950009ae9595035781c6ddb6abe58bbb0fb50f Mon Sep 17 00:00:00 2001 From: Alexander K Date: Tue, 1 Aug 2023 09:20:10 +0200 Subject: [PATCH] [DSC-1126] fix check for availability dso payload --- src/app/shared/dso-page/dso-edit-menu.resolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/dso-page/dso-edit-menu.resolver.ts b/src/app/shared/dso-page/dso-edit-menu.resolver.ts index 749d5580a43..e7d4695d1c3 100644 --- a/src/app/shared/dso-page/dso-edit-menu.resolver.ts +++ b/src/app/shared/dso-page/dso-edit-menu.resolver.ts @@ -53,7 +53,7 @@ export class DSOEditMenuResolver implements Resolve<{ [key: string]: MenuSection return this.dSpaceObjectDataService.findById(id, true, false).pipe( getFirstCompletedRemoteData(), switchMap((dsoRD) => { - if (dsoRD.hasSucceeded) { + if (dsoRD.hasSucceeded && dsoRD.payload != null) { const dso = dsoRD.payload; return combineLatest(this.getDsoMenus(dso, route, state)).pipe( // Menu sections are retrieved as an array of arrays and flattened into a single array