Skip to content

Commit

Permalink
Do not trigger scroll if scroll target is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Feb 21, 2025
1 parent 11bb813 commit c51f233
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desktop/src/app/components/resources/base-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export class BaseList implements AfterViewChecked {
protected scrollTo(scrollTarget: FieldDocument, scrollToBottomElement: boolean = false,
scrollOnlyIfInvisible: boolean = true) {

if (!scrollTarget) return;

this.waitingForScroll = true;
this.scrollTarget = scrollTarget;
this.scrollToBottomElement = scrollToBottomElement;
Expand Down

0 comments on commit c51f233

Please sign in to comment.