diff options
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx index b91357dd..e0534695 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx @@ -1,6 +1,7 @@ import React from "react"; import { HttpTimelinePostInfo } from "@/http/timeline"; + import TimelinePostListView from "./TimelinePostListView"; export interface TimelinePagedPostListViewProps { @@ -38,16 +39,6 @@ const TimelinePagedPostListView: React.FC<TimelinePagedPostListViewProps> = ( } }, [lastViewCount, posts]); - React.useEffect(() => { - if (lastViewCount !== 10) { - document - .getElementById( - `timeline-post-${posts[posts.length - (lastViewCount - 10)].id}` - ) - ?.scrollIntoView(true); - } - }, [lastViewCount, posts]); - return ( <TimelinePostListView className={className} |