From b91b3cd2805fa36a99bd8f6bff4058515019968c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Tue, 29 Jun 2021 15:42:01 +0300 Subject: [PATCH] RED-1721: hide annotations on excluded pages --- apps/red-ui/src/app/models/file/file-data.model.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 1986cdca3..ad33405e8 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 @@ -35,7 +35,9 @@ export class FileDataModel { areDevFeaturesEnabled: boolean ): AnnotationData { const entries: RedactionLogEntryWrapper[] = this._convertData(dictionaryData); - let allAnnotations = entries.map(entry => AnnotationWrapper.fromData(entry)); + let allAnnotations = entries + .map(entry => AnnotationWrapper.fromData(entry)) + .filter(ann => !this.fileStatus.excludedPages.includes(ann.pageNumber)); if (!areDevFeaturesEnabled) { allAnnotations = allAnnotations.filter(annotation => !annotation.isFalsePositive);