mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 09:47:47 -05:00
fix: deleting another folder in the sidebar keeps the open folder's page (#32697)
This commit is contained in:
1 file changed
+3
-1
@@ -1404,7 +1404,9 @@
|
||||
{shiftKey}
|
||||
onFolderUnreadCounts={applyFolderUnreadCounts}
|
||||
onDelete={(folderId) => {
|
||||
selectedFolder.set(null);
|
||||
let id = $selectedFolder?.id;
|
||||
while (id && id !== folderId) id = folders[id]?.parent_id;
|
||||
if (id) selectedFolder.set(null);
|
||||
initChatList();
|
||||
}}
|
||||
on:update={() => {
|
||||
|
||||
Reference in new issue
Block a user