diff --git a/backend/open_webui/routers/chats.py b/backend/open_webui/routers/chats.py
index c62afaabec..0f87f0b0a8 100644
--- a/backend/open_webui/routers/chats.py
+++ b/backend/open_webui/routers/chats.py
@@ -218,7 +218,7 @@ async def get_chat_list_by_folder_id(
folder_id: str, page: Optional[int] = 1, user=Depends(get_verified_user)
):
try:
- limit = 60
+ limit = 10
skip = (page - 1) * limit
return [
diff --git a/src/lib/components/chat/Placeholder/ChatList.svelte b/src/lib/components/chat/Placeholder/ChatList.svelte
index 62869f7fc2..d73bc30a9a 100644
--- a/src/lib/components/chat/Placeholder/ChatList.svelte
+++ b/src/lib/components/chat/Placeholder/ChatList.svelte
@@ -7,11 +7,18 @@
import { getTimeRange } from '$lib/utils';
import ChevronUp from '$lib/components/icons/ChevronUp.svelte';
import ChevronDown from '$lib/components/icons/ChevronDown.svelte';
+ import Loader from '$lib/components/common/Loader.svelte';
+ import Spinner from '$lib/components/common/Spinner.svelte';
dayjs.extend(localizedFormat);
export let chats = [];
+ export let chatListLoading = false;
+ export let allChatsLoaded = false;
+
+ export let loadHandler: Function = null;
+
let chatList = null;
const init = async () => {
@@ -158,19 +165,19 @@
{/each}
-
+ {#if !allChatsLoaded && loadHandler}
+