Fixed errors on document reload
This commit is contained in:
parent
96cf1f803b
commit
df20f7ba85
@ -491,8 +491,6 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
||||
await this._cleanupAndRedrawAnnotations();
|
||||
}
|
||||
}
|
||||
|
||||
await this._stampPDF();
|
||||
}
|
||||
|
||||
private async _stampPDF() {
|
||||
@ -557,9 +555,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
||||
this.addActiveScreenSubscription = this._filesMapService.fileReanalysed$
|
||||
.pipe(filter(file => file.fileId === this.fileId))
|
||||
.subscribe(async file => {
|
||||
console.log(file);
|
||||
if (file.lastProcessed !== this._fileData?.file.lastProcessed) {
|
||||
console.log(1);
|
||||
const previousAnnotations = this.visibleAnnotations;
|
||||
await this._loadFileData(file);
|
||||
await this._reloadAnnotations(previousAnnotations);
|
||||
@ -599,11 +595,8 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
||||
return this._router.navigate([this._dossiersService.find(this.dossierId).routerLink]);
|
||||
}
|
||||
|
||||
console.log(2);
|
||||
const fileData = await this._pdfViewerDataService.loadDataFor(file).toPromise();
|
||||
|
||||
console.log(3);
|
||||
|
||||
if (file.isPending) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -41,7 +41,6 @@ export class PdfViewerDataService {
|
||||
const dossier = this._dossiersService.find(file.dossierId);
|
||||
|
||||
return forkJoin([blob$, redactionLog$, viewedPages$]).pipe(
|
||||
tap(data => console.log('data', data)),
|
||||
map(
|
||||
(data: [blob: Blob, redactionLog: IRedactionLog, viewedPages: IViewedPage[]]) =>
|
||||
new FileDataModel(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user