From b7848e8b8bccb81a6f69dba69deb5ed4264ee63c Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Sat, 25 Mar 2023 13:58:17 +0800 Subject: [PATCH] fix: refresh during generation fixes #116 --- .../Chat/ChatContent/Message/MessageContent.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Chat/ChatContent/Message/MessageContent.tsx b/src/components/Chat/ChatContent/Message/MessageContent.tsx index a6f7e7d..c5e8ddb 100644 --- a/src/components/Chat/ChatContent/Message/MessageContent.tsx +++ b/src/components/Chat/ChatContent/Message/MessageContent.tsx @@ -157,9 +157,11 @@ const ContentView = React.memo(
{isDelete || ( <> - {role === 'assistant' && messageIndex === lastMessageIndex && ( - - )} + {!useStore.getState().generating && + role === 'assistant' && + messageIndex === lastMessageIndex && ( + + )} {messageIndex !== 0 && } {messageIndex !== lastMessageIndex && (