Skip to content

Commit

Permalink
[DSC-1126] fix check for availability dso payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander K committed Aug 1, 2023
1 parent 9e647a0 commit e295000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/dso-page/dso-edit-menu.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e295000

Please sign in to comment.