File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,12 +252,16 @@ export class BrowserOrejimeService extends OrejimeService {
252252 this . applyUpdateSettingsCallbackToApps ( user ) ;
253253 this . lazyOrejime . then ( ( { init } ) => {
254254 this . orejimeInstance = init ( this . orejimeConfig ) ;
255+ this . initialized = true ;
256+ this . initialized$ . next ( true ) ;
255257 } ) ;
256258 } ) ;
257259
258260 this . consentsUpdates$ . pipe (
259261 filter ( ( ) => this . initialized ) ,
260- ) . subscribe ( ( consents ) => this . isKlaroManagerWatching = hasValue ( consents ) ) ;
262+ ) . subscribe ( ( consents ) => {
263+ this . isKlaroManagerWatching = hasValue ( consents ) ;
264+ } ) ;
261265 }
262266
263267 /**
@@ -519,8 +523,8 @@ export class BrowserOrejimeService extends OrejimeService {
519523 return ;
520524 }
521525
522- this . lazyOrejime . then ( ( { getManager } ) => {
523- const manager = getManager ( this . orejimeConfig ) ;
526+ this . lazyOrejime . then ( _ => {
527+ const manager = this . orejimeInstance . internals . manager ;
524528 const consentsSubject$ = this . consentsUpdates$ ;
525529 let lastCookiesConsents ;
526530
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ export class MetadataLinkViewComponent implements OnInit {
150150 * @returns The created MetadataView object.
151151 */
152152 private createMetadataView ( itemRD : RemoteData < Item > , metadataValue : MetadataValue ) : MetadataView {
153- if ( itemRD . hasSucceeded ) {
153+ if ( itemRD . hasSucceeded && itemRD . payload ) {
154154 this . relatedItem = itemRD . payload ;
155155 this . relatedDsoRoute = this . getItemPageRoute ( this . relatedItem ) ;
156156 const entityStyleValue = this . getCrisRefMetadata ( itemRD . payload ?. entityType ) ;
You can’t perform that action at this time.
0 commit comments