From 034aa78842d6e4905bcddf99f4ca7746c3b7ebd0 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Wed, 15 Nov 2023 14:29:03 +0200 Subject: [PATCH] RED-7634 - Hide "Skipped" button not working as expected --- .../modules/file-preview/file-preview-screen.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index 66c13f13d..5dd83010f 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -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);