Skip to content

Commit c5d9b11

Browse files
committed
fix: merge bug
1 parent e13408d commit c5d9b11

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
@@ -1614,7 +1614,7 @@ function _Chat() {
16141614
event.key.toLowerCase() === "k"
16151615
) {
16161616
event.preventDefault();
1617-
chatStore.updateCurrentSession((session) => {
1617+
chatStore.updateTargetSession(session, (session) => {
16181618
if (session.clearContextIndex === session.messages.length) {
16191619
session.clearContextIndex = undefined;
16201620
} else {
@@ -1630,7 +1630,7 @@ function _Chat() {
16301630
return () => {
16311631
document.removeEventListener("keydown", handleKeyDown);
16321632
};
1633-
}, [messages, chatStore, navigate]);
1633+
}, [messages, chatStore, navigate, session]);
16341634

16351635
const [showChatSidePanel, setShowChatSidePanel] = useState(false);
16361636

0 commit comments

Comments
 (0)