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