From 7535b69244a688f346f1a92b5d81f72c6e89d46e Mon Sep 17 00:00:00 2001 From: lhwan <1017484907@qq.com> Date: Fri, 30 Aug 2024 15:51:57 +0800 Subject: [PATCH] chat page scroll logic optimization --- web/new-components/chat/content/ChatCompletion.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/new-components/chat/content/ChatCompletion.tsx b/web/new-components/chat/content/ChatCompletion.tsx index b91d374c5..c71d661e2 100644 --- a/web/new-components/chat/content/ChatCompletion.tsx +++ b/web/new-components/chat/content/ChatCompletion.tsx @@ -72,7 +72,7 @@ const ChatCompletion: React.FC = () => { setTimeout(() => { scrollableRef.current?.scrollTo(0, scrollableRef.current?.scrollHeight); }, 50); - }, [history, history[history.length - 1].context]]); + }, [history, history[history.length - 1].context]); return (