diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts index 89a6b6246..788204e00 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts @@ -308,7 +308,7 @@ export class FileWorkloadComponent extends AutoUnsubscribe implements OnInit, On @Debounce() scrollToSelectedAnnotation(): void { const annotationsElement = untracked(this._annotationsElement); - if (this.listingService.selected.length === 0 || annotationsElement) { + if (this.listingService.selected.length === 0 || !annotationsElement) { return; } const elements: HTMLElement[] = annotationsElement.nativeElement.querySelectorAll(