[WEB-1791] fix: issue delete redirection (#4980)
* fix: issue delete redirection * fix: issue delete toast alert
This commit is contained in:
parent
ab2e96a915
commit
f2694e0be4
1 changed files with 1 additions and 5 deletions
|
|
@ -80,11 +80,7 @@ export const IssueDetailQuickActions: FC<Props> = observer((props) => {
|
|||
try {
|
||||
if (issue?.archived_at) await removeArchivedIssue(workspaceSlug, projectId, issueId);
|
||||
else await removeIssue(workspaceSlug, projectId, issueId);
|
||||
setToast({
|
||||
title: "Success!",
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
message: "Issue deleted successfully",
|
||||
});
|
||||
router.push(`/${workspaceSlug}/projects/${projectId}/issues`);
|
||||
captureIssueEvent({
|
||||
eventName: ISSUE_DELETED,
|
||||
payload: { id: issueId, state: "SUCCESS", element: "Issue detail page" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue