Merge branch 'RED-7316' into 'master'

Resolve RED-7316

Closes RED-7316

See merge request redactmanager/red-ui!252
This commit is contained in:
Dan Percic 2024-01-15 10:29:08 +01:00
commit 76f95c5eb6
2 changed files with 1 additions and 9 deletions

View File

@ -37,7 +37,7 @@ export class AnnotationDrawService {
async draw(annotations: List<AnnotationWrapper>, hideSkipped: boolean, dossierTemplateId: string) {
try {
return this._pdf.runWithCleanup(() => this.#draw(annotations, hideSkipped, dossierTemplateId));
await this.#draw(annotations, hideSkipped, dossierTemplateId);
} catch (e) {
console.error(e);
}
@ -175,7 +175,6 @@ export class AnnotationDrawService {
const appliedRedactionColor = this._defaultColorsService.getColor(dossierTemplateId, 'appliedRedactionColor');
annotation.setCustomData('appliedRedactionColor', String(appliedRedactionColor));
return annotation;
}

View File

@ -151,13 +151,6 @@ export class PdfViewer {
}
await this.runWithCleanup(async () => {
try {
await this.PDFNet.initialize(this.#licenseKey);
} catch (e) {
this._errorService.set(e);
throw e;
}
this.#instance.UI.setTheme(this._userPreferenceService.getTheme());
this._logger.info('[PDF] Initialized');