diff --git a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte index bc6ae2ba6c..a7771786c6 100644 --- a/src/lib/components/layout/Sidebar/RecursiveFolder.svelte +++ b/src/lib/components/layout/Sidebar/RecursiveFolder.svelte @@ -286,7 +286,7 @@ }); } - if (chat) { + if (chat && chat.folder_id !== folderId) { // Move the chat const res = await updateChatFolderIdById( localStorage.token,