From ad3e880491939a87db2c23b882950e7608bd5824 Mon Sep 17 00:00:00 2001 From: vgwidt <49006240+vgwidt@users.noreply.github.com> Date: Mon, 12 Sep 2022 17:26:09 +0900 Subject: [PATCH] fix: Dialog doesn't close after deleting a document with a parent (#4108) --- app/scenes/DocumentDelete.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scenes/DocumentDelete.tsx b/app/scenes/DocumentDelete.tsx index 82537a6f5..43b56695f 100644 --- a/app/scenes/DocumentDelete.tsx +++ b/app/scenes/DocumentDelete.tsx @@ -44,6 +44,7 @@ function DocumentDelete({ document, onSubmit }: Props) { if (parent) { history.push(documentUrl(parent)); + onSubmit(); return; } }