mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
fix: prevent crash when regenerating message with missing parent (#20264)
This commit is contained in:
parent
fe84afd09a
commit
b997d00947
1 changed files with 5 additions and 0 deletions
|
|
@ -2141,6 +2141,11 @@
|
|||
if (history.currentId) {
|
||||
let userMessage = history.messages[message.parentId];
|
||||
|
||||
if (!userMessage) {
|
||||
toast.error($i18n.t('Parent message not found'));
|
||||
return;
|
||||
}
|
||||
|
||||
if (autoScroll) {
|
||||
scrollToBottom();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue