diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 4482268f2..2844f61e5 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -558,19 +558,6 @@ on:input={searchDebounceHandler} placeholder={$i18n.t('Search')} /> - -
- - - -
{ + createFolder(); + }} + onAddLabel={$i18n.t('New Folder')} on:import={(e) => { importChatHandler(e.detail); }} @@ -631,7 +622,7 @@ } if (chat.pinned) { - const res = await toggleChatPinnedStatusById(localStorage.token, chat, id); + const res = await toggleChatPinnedStatusById(localStorage.token, chat.id); } initChatList(); @@ -661,7 +652,7 @@ {#if !search && $pinnedChats.length > 0}
{ localStorage.setItem('showPinnedChat', e.detail); diff --git a/src/lib/components/layout/Sidebar/Folders.svelte b/src/lib/components/layout/Sidebar/Folders.svelte index fb0c955c5..1a0771f1f 100644 --- a/src/lib/components/layout/Sidebar/Folders.svelte +++ b/src/lib/components/layout/Sidebar/Folders.svelte @@ -19,7 +19,7 @@ {#each folderList as folderId (folderId)} {