mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
6f0def4ee3
commit
699c8073ff
1 changed files with 8 additions and 1 deletions
|
|
@ -37,7 +37,9 @@
|
|||
let history = null;
|
||||
let messages = null;
|
||||
|
||||
$: loadChatPreview(selectedIdx);
|
||||
$: if (!chatListLoading && chatList) {
|
||||
loadChatPreview(selectedIdx);
|
||||
}
|
||||
|
||||
const loadChatPreview = async (selectedIdx) => {
|
||||
if (!chatList || chatList.length === 0) {
|
||||
|
|
@ -98,6 +100,11 @@
|
|||
}, 500);
|
||||
}
|
||||
|
||||
selectedChat = null;
|
||||
messages = null;
|
||||
history = null;
|
||||
selectedModels = [''];
|
||||
|
||||
if ((chatList ?? []).length === 0) {
|
||||
allChatsLoaded = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue