mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-20 12:20:31 +08:00
patch: decisionCard and popupCard of bing client (#505)
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user