RED-7634 - Hide "Skipped" button not working as expected

This commit is contained in:
Valentin Mihai 2023-11-15 14:29:03 +02:00
parent 2df87f4f16
commit 034aa78842

View File

@ -247,7 +247,10 @@ export class FilePreviewScreenComponent
.filter(a => !bool(a.getCustomData('changeLogRemoved')) && !this._annotationManager.isHidden(a.Id))
.filter(a => !ocrAnnotationIds.includes(a.Id));
const nonStandardEntries = annotations.filter(
a => bool(a.getCustomData('changeLogRemoved')) || this._annotationManager.isHidden(a.Id),
a =>
bool(a.getCustomData('changeLogRemoved')) ||
this._annotationManager.isHidden(a.Id) ||
(this._skippedService.hideSkipped() && bool(a.getCustomData('skipped'))),
);
this._readableRedactionsService.setAnnotationsColor(standardEntries, 'annotationColor');
this._readableRedactionsService.setAnnotationsOpacity(standardEntries, true);