mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-15 15:41:23 +00:00
fixup
This commit is contained in:
@@ -445,8 +445,10 @@ export function Chat(props: {
|
|||||||
chatStore
|
chatStore
|
||||||
.onUserInput(messages[i].content)
|
.onUserInput(messages[i].content)
|
||||||
.then(() => setIsLoading(false));
|
.then(() => setIsLoading(false));
|
||||||
|
chatStore.updateCurrentSession((session) =>
|
||||||
|
session.messages.splice(i, 2),
|
||||||
|
);
|
||||||
inputRef.current?.focus();
|
inputRef.current?.focus();
|
||||||
messages.splice(i, 2);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user