diff --git a/src/lib/components/admin/Users/UserList/UserChatsModal.svelte b/src/lib/components/admin/Users/UserList/UserChatsModal.svelte index 4ae550d0c9..f19ae60c39 100644 --- a/src/lib/components/admin/Users/UserList/UserChatsModal.svelte +++ b/src/lib/components/admin/Users/UserList/UserChatsModal.svelte @@ -90,7 +90,9 @@ }; const init = async () => { + page = 1; chatList = await getChatListByUserId(localStorage.token, user.id, page, filter); + allChatsLoaded = (chatList ?? []).length === 0; }; $: if (show) {