This commit is contained in:
2025-10-29 22:19:54 +01:00
parent 15f79d3d8b
commit 7a6ac5f0be
6 changed files with 14 additions and 38 deletions
+8 -1
View File
@@ -925,12 +925,19 @@ const AppLayout = () => {
.map((doc) => resolveDocumentRowKey(doc.id))
.filter(Boolean);
const availableDocKeySet = new Set(availableDocKeys);
const availableFolderKeys = new Set(
subfolders
.map((folder) => resolveFolderRowKey(folder.id))
.filter(Boolean),
);
let nextDocKeys = [];
let mergedSelection = [];
setSelectedRowKeys((previous) => {
const previousFolderKeys = previous.filter(isFolderRowKey);
const previousFolderKeys = previous
.filter(isFolderRowKey)
.filter((key) => availableFolderKeys.has(key));
const previousDocKeys = previous.filter(isDocumentRowKey);
if (selectionInitializedRef.current) {