diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx index 4a78919db..35c3f8221 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx @@ -845,8 +845,8 @@ export const DocumentsTabComponent: React.FunctionComponent { - const deletedRids = new Set(deletedIds.map((documentId) => documentId.rid)); - const newDocumentIds = [...documentIds.filter((documentId) => !deletedRids.has(documentId.rid))]; + const deletedIdsSet = new Set(deletedIds.map((documentId) => documentId.id)); + const newDocumentIds = [...documentIds.filter((documentId) => !deletedIdsSet.has(documentId.id))]; setDocumentIds(newDocumentIds); setSelectedDocumentContent(undefined);