Skip to content

Commit 1d14a99

Browse files
committed
fix: use current session id to trigger rerender
1 parent 38fa305 commit 1d14a99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,6 +2071,6 @@ function _Chat() {
20712071

20722072
export function Chat() {
20732073
const chatStore = useChatStore();
2074-
const sessionIndex = chatStore.currentSessionIndex;
2075-
return <_Chat key={sessionIndex}></_Chat>;
2074+
const session = chatStore.currentSession();
2075+
return <_Chat key={session.id}></_Chat>;
20762076
}

0 commit comments

Comments
 (0)