fix RED-2977

This commit is contained in:
Dan Percic 2021-12-08 16:50:10 +02:00
parent 8a00a3d461
commit 7be99ea7b8

View File

@ -477,15 +477,9 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
private async _reloadFile(file: File): Promise<void> {
await this._loadFileData(file, true);
await this._cleanupAndRedrawManualAnnotations$().toPromise();
await this._stampPDF();
}
private _disableMultiSelectAndDocumentInfo(): void {
this.multiSelectService.deactivate();
this.documentInfoService.hide();
}
private _setHiddenPropertyToNewAnnotations(newAnnotations: AnnotationWrapper[], oldAnnotations: AnnotationWrapper[]) {
newAnnotations.map(newAnnotation => {
const oldAnnotation = oldAnnotations.find(a => a.annotationId === newAnnotation.annotationId);