patch: decisionCard and popupCard of bing client (#505)

This commit is contained in:
josc146
2023-09-23 16:52:00 +08:00
parent 18c9c4f5d2
commit 711e0d3493
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ function ConversationCard(props) {
useEffect(async () => {
// when the page is responsive, session may accumulate redundant data and needs to be cleared after remounting and before making a new request
if (props.question) {
const newSession = initSession({ question: props.question })
const newSession = initSession({ ...session, question: props.question })
setSession(newSession)
await postMessage({ session: newSession })
}