mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
fix: deleting another folder in the sidebar keeps the open folder's page (#32697)
This commit is contained in:
parent
12ed28f6b8
commit
db9aa8c9c0
1 changed files with 3 additions and 1 deletions
|
|
@ -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={() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue