fix: deleting another folder in the sidebar keeps the open folder's page (#32697)

This commit is contained in:
G30 authored and GitHub committed 2026-10-21 02:08:58 +09:00
1 parent 12ed28f6b8
commit db9aa8c9c0
1 file changed
+3 -1
+3 -1
View File
@@ -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={() => {