diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.ts b/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.ts index e6e913e2c..5392cc4ad 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.ts @@ -147,13 +147,13 @@ export class AnnotationActionsComponent implements OnChanges { hideAnnotation() { this._annotationManager.hide(this.viewerAnnotations); this._annotationManager.deselect(); - viewerAnnotations.forEach(a => this._annotationManager.addToHidden(a.Id)); + this.viewerAnnotations.forEach(a => this._annotationManager.addToHidden(a.Id)); } showAnnotation() { this._annotationManager.show(this.viewerAnnotations); this._annotationManager.deselect(); - viewerAnnotations.forEach(a => this._annotationManager.removeFromHidden(a.Id)); + this.viewerAnnotations.forEach(a => this._annotationManager.removeFromHidden(a.Id)); } resize() {