Skip to content

Commit 56d6082

Browse files
96384: Fix RSS component sometimes not displaying when loaded to fast
1 parent ca86437 commit 56d6082

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/shared/rss-feed/rss.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { RemoteData } from '../../core/data/remote-data';
3333
})
3434
export class RSSComponent implements OnInit, OnDestroy {
3535

36-
route$: BehaviorSubject<string>;
36+
route$: BehaviorSubject<string> = new BehaviorSubject<string>('');
3737

3838
isEnabled$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(null);
3939

@@ -101,7 +101,7 @@ export class RSSComponent implements OnInit, OnDestroy {
101101
rel: 'search',
102102
title: 'Dspace'
103103
});
104-
this.route$ = new BehaviorSubject<string>(route);
104+
this.route$.next(route);
105105
}));
106106
}
107107

0 commit comments

Comments
 (0)