RED-1721: hide annotations on excluded pages
This commit is contained in:
parent
5b907a178e
commit
b91b3cd280
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user