mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
Fix double fetch issue when clicking on an item
This commit is contained in:
@@ -1134,8 +1134,6 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
|
|
||||||
// If only one selection, we consider as a click
|
// If only one selection, we consider as a click
|
||||||
if (selectedRows.size === 1) {
|
if (selectedRows.size === 1) {
|
||||||
const selectedRow = Array.from(selectedRows)[0];
|
|
||||||
onDocumentClicked(selectedRow);
|
|
||||||
setEditorState(ViewModels.DocumentExplorerState.exisitingDocumentNoEdits);
|
setEditorState(ViewModels.DocumentExplorerState.exisitingDocumentNoEdits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user