96384: Fix RSS component sometimes not displaying when loaded to fast

This commit is contained in:
Alexandre Vryghem
2023-03-17 17:00:12 +01:00
parent ca864379c8
commit 56d60820a5

View File

@@ -33,7 +33,7 @@ import { RemoteData } from '../../core/data/remote-data';
}) })
export class RSSComponent implements OnInit, OnDestroy { export class RSSComponent implements OnInit, OnDestroy {
route$: BehaviorSubject<string>; route$: BehaviorSubject<string> = new BehaviorSubject<string>('');
isEnabled$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(null); isEnabled$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(null);
@@ -101,7 +101,7 @@ export class RSSComponent implements OnInit, OnDestroy {
rel: 'search', rel: 'search',
title: 'Dspace' title: 'Dspace'
}); });
this.route$ = new BehaviorSubject<string>(route); this.route$.next(route);
})); }));
} }