selection fix

This commit is contained in:
2025-11-11 21:50:08 +01:00
parent 8e7a2f3d6c
commit 1111784caa
4 changed files with 29 additions and 26 deletions
@@ -28,7 +28,6 @@ const useFolderTreeActions = ({
setDraggedFolderId,
isInvalidFolderDrop,
setCreatingFolder,
clearSelection,
}) => {
const moveFolder = useCallback(
async (folderId, targetFolderId) => {
@@ -174,10 +173,6 @@ const useFolderTreeActions = ({
async (folderId, { replace = false, immediate = false } = {}) => {
const targetId = folderId && folderId !== 'root' ? folderId : 'root';
if (typeof clearSelection === 'function') {
clearSelection();
}
await ensureFolderAncestorsLoaded(targetId);
expandFolderAncestors(targetId);
@@ -191,7 +186,6 @@ const useFolderTreeActions = ({
navigate(path, { replace });
},
[
clearSelection,
ensureFolderAncestorsLoaded,
expandFolderAncestors,
isFilterActive,