diff --git a/apps/red-ui/src/app/services/notifications.service.ts b/apps/red-ui/src/app/services/notifications.service.ts index c5658c501..ad596231b 100644 --- a/apps/red-ui/src/app/services/notifications.service.ts +++ b/apps/red-ui/src/app/services/notifications.service.ts @@ -12,8 +12,6 @@ import { DossiersCacheService } from './dossiers/dossiers-cache.service'; import dayjs from 'dayjs'; import { List, mapEach } from '@iqser/common-ui/lib/utils'; import { APP_BASE_HREF } from '@angular/common'; -import { Router } from '@angular/router'; -import { filterEventsOnPages } from '@utils/operators'; const INCLUDE_SEEN = false; @@ -35,7 +33,6 @@ export class NotificationsService extends EntitiesService (this._dossiersCacheService.empty ? this._dossiersCacheService.load() : of(null))), switchMap(() => this.#loadNotificationsIfChanged()), ); // Rebuild notifications when cached dossiers are updated - const changed$ = this._dossiersCacheService.changed$.pipe( - filterEventsOnPages(this._router), - tap(() => this.setEntities(this.all.map(e => this._new(e)))), - ); + const changed$ = this._dossiersCacheService.changed$.pipe(tap(() => this.setEntities(this.all.map(e => this._new(e))))); return merge(timer$, changed$); }