RED-1721: hide annotations on excluded pages

This commit is contained in:
Adina Țeudan 2021-06-29 15:42:01 +03:00
parent 5b907a178e
commit b91b3cd280

View File

@ -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);