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