Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
576ab695
Unverified
Commit
576ab695
authored
Oct 28, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Oct 28, 2023
Browse files
Merge pull request #38 from ollama-webui/dev
fix: unfinished chat load error
parents
313ae21b
ce4973be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/routes/+page.svelte
src/routes/+page.svelte
+3
-0
No files found.
src/routes/+page.svelte
View file @
576ab695
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment