fix: peek overview delete modal (#4062)

This commit is contained in:
Anmol Singh Bhatia 2024-03-25 19:21:00 +05:30 committed by GitHub
parent 11c3d4fbd8
commit ad5559afe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,10 +96,9 @@ export const IssueView: FC<IIssueView> = observer((props) => {
isOpen={!!isDeleteIssueModalOpen}
handleClose={() => {
toggleDeleteIssueModal(null);
removeRoutePeekId();
}}
data={issue}
onSubmit={() => issueOperations.remove(workspaceSlug, projectId, issueId)}
onSubmit={() => issueOperations.remove(workspaceSlug, projectId, issueId).then(() => removeRoutePeekId())}
/>
)}