From 5445164d6f756f769b24b16519b0a6aea89463a3 Mon Sep 17 00:00:00 2001 From: Laurent Nguyen Date: Mon, 22 Apr 2024 13:54:16 +0200 Subject: [PATCH] Fix double fetch issue when clicking on an item --- src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx index 6b5f28472..4fabafde4 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx @@ -1134,8 +1134,6 @@ const DocumentsTabComponent: React.FunctionComponent<{ // If only one selection, we consider as a click if (selectedRows.size === 1) { - const selectedRow = Array.from(selectedRows)[0]; - onDocumentClicked(selectedRow); setEditorState(ViewModels.DocumentExplorerState.exisitingDocumentNoEdits); }