Unverified Commit 576ab695 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #38 from ollama-webui/dev

fix: unfinished chat load error
parents 313ae21b ce4973be
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment