mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
417ba4980a
commit
c6580a2a02
1 changed files with 3 additions and 4 deletions
|
|
@ -33,15 +33,14 @@
|
||||||
clearTimeout(searchDebounceTimeout);
|
clearTimeout(searchDebounceTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query === '') {
|
|
||||||
page = 1;
|
page = 1;
|
||||||
|
chatList = null;
|
||||||
|
if (query === '') {
|
||||||
chatList = await getChatList(localStorage.token, page);
|
chatList = await getChatList(localStorage.token, page);
|
||||||
} else {
|
} else {
|
||||||
searchDebounceTimeout = setTimeout(async () => {
|
searchDebounceTimeout = setTimeout(async () => {
|
||||||
page = 1;
|
|
||||||
chatList = null;
|
|
||||||
chatList = await getChatListBySearchText(localStorage.token, query, page);
|
chatList = await getChatListBySearchText(localStorage.token, query, page);
|
||||||
}, 100);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((chatList ?? []).length === 0) {
|
if ((chatList ?? []).length === 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue