Skip to content

Commit

Permalink
fix 'undefined' error on anonymous item page landing
Browse files Browse the repository at this point in the history
  • Loading branch information
frabacche committed Mar 5, 2024
1 parent 761b0c2 commit dd9fc18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/item-page/simple/item-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, Inject, OnDestroy, OnInit, PLATFORM
import { ActivatedRoute, Router } from '@angular/router';
import { isPlatformServer } from '@angular/common';

import { Observable, combineLatest } from 'rxjs';
import { Observable, combineLatest, of } from 'rxjs';
import { map, switchMap, take } from 'rxjs/operators';

import { ItemDataService } from '../../core/data/item-data.service';
Expand Down Expand Up @@ -155,6 +155,8 @@ export class ItemPageComponent implements OnInit, OnDestroy {
switchMap((coarLdnEnabled: boolean) => {
if (coarLdnEnabled) {
return this.notifyInfoService.getCoarLdnLocalInboxUrls();
} else {
return of([]);
}
})
);
Expand Down

0 comments on commit dd9fc18

Please sign in to comment.