mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Auto-select last document when saving new document
This commit is contained in:
@@ -453,6 +453,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
.then(() => setSelectedRows(new Set([documentIds.length - 1])))
|
||||||
.finally(() => setIsExecuting(false));
|
.finally(() => setIsExecuting(false));
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1284,6 +1285,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
.then(() => setSelectedRows(new Set([documentIds.length - 1])))
|
||||||
.finally(() => setIsExecuting(false));
|
.finally(() => setIsExecuting(false));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user