RED-10182: fixed scrolling to annotation in workload upon selection.

This commit is contained in:
Nicoleta Panaghiu 2024-10-14 16:34:00 +03:00
parent a8c4f6dd29
commit ace0ecfce1

View File

@ -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(