chore: bug fixes and improvement (#3434)

* fix: peek overview issue delete bug

* chore: create cycle workflow improvement

* chore: project setting improvement
This commit is contained in:
Anmol Singh Bhatia 2024-01-23 13:11:39 +05:30 committed by GitHub
parent 2986769f28
commit bb50df0dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 10 deletions

View file

@ -47,11 +47,6 @@ export const DeleteIssueModal: React.FC<Props> = (props) => {
if (onSubmit)
await onSubmit()
.then(() => {
setToastAlert({
title: "Success",
type: "success",
message: "Issue deleted successfully",
});
onClose();
})
.catch(() => {

View file

@ -109,7 +109,10 @@ export const IssueView: FC<IIssueView> = observer((props) => {
{issue && !is_archived && (
<DeleteIssueModal
isOpen={isDeleteIssueModalOpen}
handleClose={() => toggleDeleteIssueModal(false)}
handleClose={() => {
toggleDeleteIssueModal(false);
removeRoutePeekId();
}}
data={issue}
onSubmit={() => issueOperations.remove(workspaceSlug, projectId, issueId)}
/>