We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38fa305 commit 1d14a99Copy full SHA for 1d14a99
1 file changed
app/components/chat.tsx
@@ -2071,6 +2071,6 @@ function _Chat() {
2071
2072
export function Chat() {
2073
const chatStore = useChatStore();
2074
- const sessionIndex = chatStore.currentSessionIndex;
2075
- return <_Chat key={sessionIndex}></_Chat>;
+ const session = chatStore.currentSession();
+ return <_Chat key={session.id}></_Chat>;
2076
}
0 commit comments