forked from XiaoMo/ChatGPT-Next-Web
fixup
This commit is contained in:
parent
acfe6eec18
commit
c77f946be1
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user