mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-30 17:39:36 +08:00
fix: bad sessionId when clearing current conversation at Independent Panel
This commit is contained in:
@@ -286,7 +286,13 @@ function ConversationCard(props) {
|
||||
},
|
||||
})
|
||||
setConversationItemData([])
|
||||
setSession(initSession({ modelName: session.modelName }))
|
||||
const newSession = initSession({
|
||||
...session,
|
||||
question: null,
|
||||
conversationRecords: [],
|
||||
})
|
||||
newSession.sessionId = session.sessionId
|
||||
setSession(newSession)
|
||||
}}
|
||||
/>
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user