From 7e9b11fe649921d31a3598d91b6be06227b28c81 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 21 Nov 2023 17:26:09 +0800 Subject: [PATCH] fix: chat on start bug --- 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 5fb4b7d932722d..1ac6dfaeaa916c 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 2c68ac64da5120..58d495a37faca3 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')} /> ) }