RED-5515: Fixed all notifications not loading on refresh.

This commit is contained in:
Nicoleta Panaghiu 2022-11-09 15:41:04 +02:00
parent 4e951241a4
commit 0fe90bbc0b

View File

@ -28,6 +28,9 @@ export class NotificationsService extends EntitiesService<INotification, Notific
) {
super();
const prepareDossierCache = this._dossiersCacheService.empty ? of(this._dossiersCacheService.load()) : of(null);
prepareDossierCache.pipe(switchMap(() => this.loadAll())).subscribe();
timer(0, CHANGED_CHECK_INTERVAL)
.pipe(
switchMap(() => (this._dossiersCacheService.empty ? this._dossiersCacheService.load() : of(null))),