From ace0ecfce140007c0817401fd8df8056636015e4 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Mon, 14 Oct 2024 16:34:00 +0300 Subject: [PATCH] RED-10182: fixed scrolling to annotation in workload upon selection. --- .../components/file-workload/file-workload.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(