forked from tuvn86/webapp-conversation
fix: new chat set input
This commit is contained in:
parent
a96399ee15
commit
754b77657b
1 changed files with 2 additions and 0 deletions
|
|
@ -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<string, any>) => {
|
||||
createNewChat()
|
||||
setConversationIdChangeBecauseOfNew(true)
|
||||
setCurrInputs(inputs)
|
||||
setChatStarted()
|
||||
// parse variables in introduction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue