Skip to content

Commit

Permalink
fix: merge bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DDMeaqua committed Dec 31, 2024
1 parent e13408d commit c5d9b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ function _Chat() {
event.key.toLowerCase() === "k"
) {
event.preventDefault();
chatStore.updateCurrentSession((session) => {
chatStore.updateTargetSession(session, (session) => {
if (session.clearContextIndex === session.messages.length) {
session.clearContextIndex = undefined;
} else {
Expand All @@ -1630,7 +1630,7 @@ function _Chat() {
return () => {
document.removeEventListener("keydown", handleKeyDown);
};
}, [messages, chatStore, navigate]);
}, [messages, chatStore, navigate, session]);

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

Expand Down

0 comments on commit c5d9b11

Please sign in to comment.