From cf72dca56727cf993ac0340d47848c2074aaa684 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Tue, 1 Feb 2022 11:40:05 +0200 Subject: [PATCH] fix excluded pages --- .../file-preview-screen/file-preview-screen.component.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts index 7134c5fe5..e300d19f4 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts @@ -10,6 +10,7 @@ import { ErrorService, FilterService, LoadingService, + log, NestedFilter, OnAttach, OnDetach, @@ -510,12 +511,9 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni } private async _fileUpdated(file: File): Promise { - const hasBeenProcessed = await firstValueFrom(this.stateService.hasBeenProcessed$); await this._loadFileData(file); - - if (hasBeenProcessed) { - await this._reloadAnnotations(); - } + await this._reloadAnnotations(); + await this._stampPDF(); } private _subscribeToFileUpdates(): void { @@ -523,6 +521,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni .watch$(this.dossierId, this.fileId) .pipe( filter(f => !!f), + log(), switchMap(file => this._fileUpdated(file)), ) .subscribe();