From ad5559afe490a4efaa5ec08ebd9ce79cf33b3248 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 25 Mar 2024 19:21:00 +0530 Subject: [PATCH] fix: peek overview delete modal (#4062) --- web/components/issues/peek-overview/view.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/components/issues/peek-overview/view.tsx b/web/components/issues/peek-overview/view.tsx index 3723627a9..35925d6cd 100644 --- a/web/components/issues/peek-overview/view.tsx +++ b/web/components/issues/peek-overview/view.tsx @@ -96,10 +96,9 @@ export const IssueView: FC = observer((props) => { isOpen={!!isDeleteIssueModalOpen} handleClose={() => { toggleDeleteIssueModal(null); - removeRoutePeekId(); }} data={issue} - onSubmit={() => issueOperations.remove(workspaceSlug, projectId, issueId)} + onSubmit={() => issueOperations.remove(workspaceSlug, projectId, issueId).then(() => removeRoutePeekId())} /> )}