mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-01-21 16:30:25 +00:00
Fix double fetch issue when clicking on an item
This commit is contained in:
parent
869e293a52
commit
5445164d6f
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user