forked from XiaoMo/ChatGPT-Next-Web
fix: #2672 should use correct resend index
This commit is contained in:
parent
a4040fc1ee
commit
e1142216ec
@ -802,7 +802,7 @@ function _Chat() {
|
||||
(m) => m.id === message.id,
|
||||
);
|
||||
|
||||
if (resendingIndex <= 0 || resendingIndex >= session.messages.length) {
|
||||
if (resendingIndex < 0 || resendingIndex >= session.messages.length) {
|
||||
console.error("[Chat] failed to find resending message", message);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user