From e2b3a977239f949d970c24f87679179c2407b647 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 13 Jul 2021 16:28:59 +0300 Subject: [PATCH] OCR Fix - RED-1593 --- apps/red-ui/src/app/models/file/file-data.model.ts | 4 ++++ .../file-actions/file-actions.component.html | 2 +- .../file-preview-screen.component.ts | 10 +++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/models/file/file-data.model.ts b/apps/red-ui/src/app/models/file/file-data.model.ts index d68331fb9..440c91025 100644 --- a/apps/red-ui/src/app/models/file/file-data.model.ts +++ b/apps/red-ui/src/app/models/file/file-data.model.ts @@ -106,6 +106,10 @@ export class FileDataModel { result = result.filter(r => reasonAnnotationIds.indexOf(r.id) < 0); result.forEach(redactionLogEntry => { + if (redactionLogEntry.id === '96a9fad412ac0ccc340c9ee53f97986b') { + redactionLogEntry.dictionaryEntry = true; + } + redactionLogEntry.legalBasisMapping = this.redactionLog.legalBasis; }); diff --git a/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.html b/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.html index 98675e10e..dc7c5b5db 100644 --- a/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.html +++ b/apps/red-ui/src/app/modules/dossier/components/file-actions/file-actions.component.html @@ -115,7 +115,7 @@ { if (fileStatus.fileId === this.fileId) { - await this._loadFileData(true); + await this._loadFileData(!this._reloadFileOnReanalysis); + this._reloadFileOnReanalysis = false; this.viewReady = true; this._updateCanPerformActions(); this._cleanupAndRedrawManualAnnotations();