fix: Dialog doesn't close after deleting a document with a parent (#4108)

This commit is contained in:
vgwidt
2022-09-12 17:26:09 +09:00
committed by GitHub
parent 15877fbb39
commit ad3e880491

View File

@@ -44,6 +44,7 @@ function DocumentDelete({ document, onSubmit }: Props) {
if (parent) {
history.push(documentUrl(parent));
onSubmit();
return;
}
}