Skip to content

Commit 499dcba

Browse files
committed
fix: bad sessionId when clearing current conversation at Independent Panel
1 parent ef9ecdc commit 499dcba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/ConversationCard/index.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,13 @@ function ConversationCard(props) {
286286
},
287287
})
288288
setConversationItemData([])
289-
setSession(initSession({ modelName: session.modelName }))
289+
const newSession = initSession({
290+
...session,
291+
question: null,
292+
conversationRecords: [],
293+
})
294+
newSession.sessionId = session.sessionId
295+
setSession(newSession)
290296
}}
291297
/>
292298
<span

0 commit comments

Comments
 (0)