diff --git a/src/app/home-page/home-page.component.ts b/src/app/home-page/home-page.component.ts index b4dfd06c337..e93b70f9ba2 100644 --- a/src/app/home-page/home-page.component.ts +++ b/src/app/home-page/home-page.component.ts @@ -1,7 +1,7 @@ import { Component, Inject, OnDestroy, OnInit, PLATFORM_ID } from '@angular/core'; import { map, switchMap } from 'rxjs/operators'; import { ActivatedRoute } from '@angular/router'; -import { Observable } from 'rxjs'; +import { Observable, of } from 'rxjs'; import { Site } from '../core/shared/site.model'; import { environment } from '../../environments/environment'; import { isPlatformServer } from '@angular/common'; @@ -40,6 +40,8 @@ export class HomePageComponent implements OnInit, OnDestroy { switchMap((coarLdnEnabled: boolean) => { if (coarLdnEnabled) { return this.notifyInfoService.getCoarLdnLocalInboxUrls(); + } else { + return of([]); } }) ).subscribe((coarRestApiUrls: string[]) => { diff --git a/src/app/item-page/simple/item-types/publication/publication.component.html b/src/app/item-page/simple/item-types/publication/publication.component.html index 771ea84af0c..ca93421f3de 100644 --- a/src/app/item-page/simple/item-types/publication/publication.component.html +++ b/src/app/item-page/simple/item-types/publication/publication.component.html @@ -86,7 +86,7 @@ + [label]="'item.page.endorsement'"> + [label]="'item.page.endorsement'">