mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
Merge pull request #38 from ollama-webui/dev
fix: unfinished chat load error
This commit is contained in:
commit
576ab695b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user