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
ce4973be
Commit
ce4973be
authored
Oct 28, 2023
by
Timothy J. Baek
Browse files
fix: unfinished chat load error
parent
edac6f4d
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 @
ce4973be
...
@@ -236,6 +236,9 @@
...
@@ -236,6 +236,9 @@
const
loadChat
=
async
(
id
)
=>
{
const
loadChat
=
async
(
id
)
=>
{
const
chat
=
await
db
.
get
(
'
chats
'
,
id
);
const
chat
=
await
db
.
get
(
'
chats
'
,
id
);
if
(
chatId
!==
chat
.
id
)
{
if
(
chatId
!==
chat
.
id
)
{
if
(
chat
.
messages
.
length
>
0
)
{
chat
.
messages
.
at
(
-
1
).
done
=
true
;
}
messages
=
chat
.
messages
;
messages
=
chat
.
messages
;
title
=
chat
.
title
;
title
=
chat
.
title
;
chatId
=
chat
.
id
;
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