Skip to content

Commit dd9fc18

Browse files
committed
fix 'undefined' error on anonymous item page landing
1 parent 761b0c2 commit dd9fc18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/item-page/simple/item-page.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, Inject, OnDestroy, OnInit, PLATFORM
22
import { ActivatedRoute, Router } from '@angular/router';
33
import { isPlatformServer } from '@angular/common';
44

5-
import { Observable, combineLatest } from 'rxjs';
5+
import { Observable, combineLatest, of } from 'rxjs';
66
import { map, switchMap, take } from 'rxjs/operators';
77

88
import { ItemDataService } from '../../core/data/item-data.service';
@@ -155,6 +155,8 @@ export class ItemPageComponent implements OnInit, OnDestroy {
155155
switchMap((coarLdnEnabled: boolean) => {
156156
if (coarLdnEnabled) {
157157
return this.notifyInfoService.getCoarLdnLocalInboxUrls();
158+
} else {
159+
return of([]);
158160
}
159161
})
160162
);

0 commit comments

Comments
 (0)