mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
Update src/routes/Library/Library.js
Co-authored-by: Timothy Z. <117831817+kKaskak@users.noreply.github.com>
This commit is contained in:
parent
455c8e314c
commit
571bc391e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue