forked from XiaoMo/ChatGPT-Next-Web
fix: #866 remove unused retry messages
This commit is contained in:
parent
78c9e66c1f
commit
525a2ff9a7
@ -570,10 +570,9 @@ export function Chat(props: {
|
|||||||
if (userIndex === null) return;
|
if (userIndex === null) return;
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
chatStore
|
const content = session.messages[userIndex].content;
|
||||||
.onUserInput(session.messages[userIndex].content)
|
|
||||||
.then(() => setIsLoading(false));
|
|
||||||
deleteMessage(userIndex);
|
deleteMessage(userIndex);
|
||||||
|
chatStore.onUserInput(content).then(() => setIsLoading(false));
|
||||||
inputRef.current?.focus();
|
inputRef.current?.focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user