From 754b77657b029df078658ff60af2b90e71f5a14c Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 29 Aug 2023 13:42:32 +0800 Subject: [PATCH] fix: new chat set input --- app/components/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/index.tsx b/app/components/index.tsx index 3ebc4b8..ff098f5 100644 --- a/app/components/index.tsx +++ b/app/components/index.tsx @@ -63,6 +63,8 @@ const Main: FC = () => { const [conversationIdChangeBecauseOfNew, setConversationIdChangeBecauseOfNew, getConversationIdChangeBecauseOfNew] = useGetState(false) const [isChatStarted, { setTrue: setChatStarted, setFalse: setChatNotStarted }] = useBoolean(false) const handleStartChat = (inputs: Record) => { + createNewChat() + setConversationIdChangeBecauseOfNew(true) setCurrInputs(inputs) setChatStarted() // parse variables in introduction