From b23de4affc84af7a5750f1616895bbb8b1ba523f Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 21 Nov 2023 17:26:49 +0800 Subject: [PATCH] fix: chat on start bug (#1588) --- web/app/components/explore/universal-chat/index.tsx | 1 + web/app/components/share/chat/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/explore/universal-chat/index.tsx b/web/app/components/explore/universal-chat/index.tsx index 5fb4b7d932..1ac6dfaeaa 100644 --- a/web/app/components/explore/universal-chat/index.tsx +++ b/web/app/components/explore/universal-chat/index.tsx @@ -688,6 +688,7 @@ const Main: FC = () => { onUnpin={handleUnpin} controlUpdateList={controlUpdateConversationList} onDelete={handleDelete} + onStartChat={() => handleConversationIdChange('-1')} /> ) } diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx index 2c68ac64da..58d495a37f 100644 --- a/web/app/components/share/chat/index.tsx +++ b/web/app/components/share/chat/index.tsx @@ -668,7 +668,7 @@ const Main: FC = ({ onUnpin={handleUnpin} controlUpdateList={controlUpdateConversationList} onDelete={handleDelete} - onStartChat={handleStartChat} + onStartChat={() => handleConversationIdChange('-1')} /> ) }