mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 11:07:55 -05:00
fix: a search in Shared Chats or a user's Chats loads more than the first 60 results (#32675)
This commit is contained in:
2 files changed
+4
-12
No files matched your search
@@ -56,17 +56,13 @@
|
||||
|
||||
if (query === '') {
|
||||
chatList = await getChatListByUserId(localStorage.token, user.id, page, filter);
|
||||
allChatsLoaded = (chatList ?? []).length === 0;
|
||||
} else {
|
||||
searchDebounceTimeout = setTimeout(async () => {
|
||||
chatList = await getChatListByUserId(localStorage.token, user.id, page, filter);
|
||||
allChatsLoaded = (chatList ?? []).length === 0;
|
||||
}, 500);
|
||||
}
|
||||
|
||||
if ((chatList ?? []).length === 0) {
|
||||
allChatsLoaded = true;
|
||||
} else {
|
||||
allChatsLoaded = false;
|
||||
}
|
||||
};
|
||||
|
||||
const loadMoreChats = async () => {
|
||||
|
||||
@@ -52,17 +52,13 @@
|
||||
|
||||
if (query === '') {
|
||||
chatList = await getSharedChatList(localStorage.token, page, filter);
|
||||
allChatsLoaded = (chatList ?? []).length === 0;
|
||||
} else {
|
||||
searchDebounceTimeout = setTimeout(async () => {
|
||||
chatList = await getSharedChatList(localStorage.token, page, filter);
|
||||
allChatsLoaded = (chatList ?? []).length === 0;
|
||||
}, 500);
|
||||
}
|
||||
|
||||
if ((chatList ?? []).length === 0) {
|
||||
allChatsLoaded = true;
|
||||
} else {
|
||||
allChatsLoaded = false;
|
||||
}
|
||||
};
|
||||
|
||||
const loadMoreChats = async () => {
|
||||
|
||||
Reference in new issue
Block a user