Skip to content

Commit

Permalink
Update src/routes/Library/Library.js
Browse files Browse the repository at this point in the history
Co-authored-by: Timothy Z. <[email protected]>
  • Loading branch information
tymmesyde and kKaskak authored Mar 13, 2024
1 parent 455c8e3 commit 571bc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/Library/Library.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 571bc39

Please sign in to comment.