We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd2522c commit 05a99f3Copy full SHA for 05a99f3
src/pages/IndependentPanel/App.jsx
@@ -50,8 +50,12 @@ function App() {
50
// eslint-disable-next-line
51
;(async () => {
52
const sessions = await getSessions()
53
- setSessions(sessions)
54
- await setSessionIdSafe(sessions[0].sessionId)
+ if (sessions[0].conversationRecords && sessions[0].conversationRecords.length > 0) {
+ await createNewChat()
55
+ } else {
56
+ setSessions(sessions)
57
+ await setSessionIdSafe(sessions[0].sessionId)
58
+ }
59
})()
60
}, [])
61
0 commit comments