RED-5460 - Delta View-Annotations of removed entries not removed in Standard-View

This commit is contained in:
Valentin Mihai 2022-11-02 18:24:17 +02:00
parent 5ad8d36bbf
commit 91e2ade703

View File

@ -222,7 +222,7 @@ 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._setAnnotationsOpacity(standardEntries, true);
this._annotationManager.show(standardEntries);