mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Fix mongo delete flow
This commit is contained in:
@@ -1358,7 +1358,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
||||
setIsExecuting(true);
|
||||
return __deleteDocument(documentId)
|
||||
.then(
|
||||
() => {
|
||||
(deletedDocumentId) => {
|
||||
TelemetryProcessor.traceSuccess(
|
||||
Action.DeleteDocument,
|
||||
{
|
||||
@@ -1367,7 +1367,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
||||
},
|
||||
startKey,
|
||||
);
|
||||
return documentId.rid;
|
||||
return deletedDocumentId;
|
||||
},
|
||||
(error) => {
|
||||
onExecutionErrorChange(true);
|
||||
|
||||
Reference in New Issue
Block a user