Merge branch 'RED-10182' into 'master'

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

See merge request redactmanager/red-ui!613
This commit is contained in:
Dan Percic 2024-10-14 15:58:07 +02:00
commit 6aea290693

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(