diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index f5ec62e4b6..efb4db5991 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -1436,6 +1436,10 @@ if (chat) { console.log(chat); + if (!chat.folder_id && !chat.pinned) { + return; + } + if (chat.folder_id) { const res = await updateChatFolderIdById( localStorage.token,