fix: Dialog doesn't close after deleting a document with a parent (#4108)
This commit is contained in:
@@ -44,6 +44,7 @@ function DocumentDelete({ document, onSubmit }: Props) {
|
|||||||
|
|
||||||
if (parent) {
|
if (parent) {
|
||||||
history.push(documentUrl(parent));
|
history.push(documentUrl(parent));
|
||||||
|
onSubmit();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user