mirror of
https://github.com/open-webui/open-webui.git
synced 2025-08-17 23:57:53 +02:00
fix: unfinished chat load error
This commit is contained in:
@@ -236,6 +236,9 @@
|
||||
const loadChat = async (id) => {
|
||||
const chat = await db.get('chats', id);
|
||||
if (chatId !== chat.id) {
|
||||
if (chat.messages.length > 0) {
|
||||
chat.messages.at(-1).done = true;
|
||||
}
|
||||
messages = chat.messages;
|
||||
title = chat.title;
|
||||
chatId = chat.id;
|
||||
|
Reference in New Issue
Block a user