mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 09:47:47 -05:00
refac
This commit is contained in:
1 parent
b8ea267f8e
commit
58e78e8946
7 files changed
+24
-8
No files matched your search
@@ -128,7 +128,9 @@
|
||||
user_id: c.user_id,
|
||||
user_name: c.user_name
|
||||
}));
|
||||
chatList = [...chatList, ...newChats];
|
||||
const existingIds = new Set(chatList.map((c) => c.id));
|
||||
const uniqueNewChats = newChats.filter((c) => !existingIds.has(c.id));
|
||||
chatList = [...chatList, ...uniqueNewChats];
|
||||
allChatsLoaded = chats.length < PAGE_SIZE;
|
||||
} catch (err) {
|
||||
console.error('Failed to load more chats:', err);
|
||||
|
||||
Reference in new issue
Block a user