From 1f316209a28355d5af51226865833be31e5ec97d Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Tue, 9 Jun 2020 17:54:41 +0800
Subject: fix(front): Attempt to fix scroll problem in timeline page.

---
 Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx | 9 ---------
 1 file changed, 9 deletions(-)

(limited to 'Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx')

diff --git a/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx b/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx
index 2cfb4341..f8721985 100644
--- a/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx
+++ b/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx
@@ -114,15 +114,6 @@ export default function TimelinePageTemplate<
     };
   }, [name, service, user, t, props.dataVersion, props.notFoundI18nKey]);
 
-  React.useEffect(() => {
-    if (posts != null) {
-      window.scrollTo(
-        0,
-        document.body.scrollHeight || document.documentElement.scrollHeight
-      );
-    }
-  }, [posts]);
-
   const closeDialog = React.useCallback((): void => {
     setDialog(null);
   }, []);
-- 
cgit v1.2.3

