Skip to content

Commit

Permalink
chore: update logic when prepare generate
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Dec 23, 2024
1 parent 8c1f133 commit b157100
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/screens/Thread/ThreadCenterPanel/ChatBody/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const ChatBody = memo(
useEffect(() => {
if (parentRef.current && isGeneratingResponse) {
parentRef.current.scrollTo({ top: parentRef.current.scrollHeight })
virtualizer.scrollToIndex(count - 1)
}
}, [count, virtualizer, isGeneratingResponse, currentThread?.id])

Expand Down

0 comments on commit b157100

Please sign in to comment.