mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[WEB-1791] fix: issue delete redirection (#4980)
* fix: issue delete redirection * fix: issue delete toast alert
This commit is contained in:
committed by
GitHub
parent
ab2e96a915
commit
f2694e0be4
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user