Skip to content

Commit

Permalink
Merged in DSC-1126-the-browse-indexes-are-not-working (pull request D…
Browse files Browse the repository at this point in the history
…Space#745)

[DSC-1126] fix check for availability dso payload

Approved-by: Andrea Barbasso
  • Loading branch information
aliaksandr.kryvasheyeu authored and Andrea Barbasso committed Aug 7, 2023
2 parents 9e647a0 + e295000 commit 99eeea9
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 99eeea9

Please sign in to comment.