mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-29 05:10:56 +00:00
feat: chat page stroboscopic bugfix
This commit is contained in:
parent
471689ba20
commit
0747835067
@ -72,15 +72,15 @@ const ChatCompletion: React.FC = () => {
|
||||
setTimeout(() => {
|
||||
scrollableRef.current?.scrollTo(0, scrollableRef.current?.scrollHeight);
|
||||
}, 50);
|
||||
}, [history]);
|
||||
}, [history, history[history.length - 1].context]]);
|
||||
|
||||
return (
|
||||
<div className='flex flex-col w-5/6 mx-auto' ref={scrollableRef}>
|
||||
{!!showMessages.length &&
|
||||
showMessages.map(content => {
|
||||
showMessages.map((content, index) => {
|
||||
return (
|
||||
<ChatContent
|
||||
key={content.key}
|
||||
key={index}
|
||||
content={content}
|
||||
onLinkClick={() => {
|
||||
setJsonModalOpen(true);
|
||||
|
Loading…
Reference in New Issue
Block a user