diff --git a/apps/red-ui/src/app/modules/dossier/services/annotation-actions.service.ts b/apps/red-ui/src/app/modules/dossier/services/annotation-actions.service.ts index 32d5004e0..c658450b6 100644 --- a/apps/red-ui/src/app/modules/dossier/services/annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/dossier/services/annotation-actions.service.ts @@ -405,7 +405,7 @@ export class AnnotationActionsService { const document = await viewer.Core.documentViewer.getDocument().getPDFDoc(); const page = await document.getPage(viewerAnnotation.getPageNumber()); - if (viewerAnnotation instanceof Core.Annotations.TextHighlightAnnotation) { + if (viewerAnnotation instanceof viewer.Core.Annotations.TextHighlightAnnotation) { const words = []; const rectangles: IRectangle[] = []; for (const quad of viewerAnnotation.Quads) {