From 571bc391e84e977f5089cc7070487ef1988b6b2e Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 13 Mar 2024 18:12:49 +0100 Subject: [PATCH] Update src/routes/Library/Library.js Co-authored-by: Timothy Z. <117831817+kKaskak@users.noreply.github.com> --- src/routes/Library/Library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Library/Library.js b/src/routes/Library/Library.js index 6fb71e85d..7720bd828 100644 --- a/src/routes/Library/Library.js +++ b/src/routes/Library/Library.js @@ -59,7 +59,7 @@ const Library = ({ model, urlParams, queryParams }) => { }, [hasNextPage, loadNextPage]); const onScroll = useOnScrollToBottom(onScrollToBottom, SCROLL_TO_BOTTOM_TRESHOLD); React.useLayoutEffect(() => { - if (library.selected && library.selected.request.page === 1) { + if (library.selected && library.selected.request.page === 1 && profile.auth !== null) { scrollContainerRef.current.scrollTop = 0; } }, [library.selected]);