forked from github/plane
fix: notification card not redirecting to archive issue detail for archived issue (#1861)
This commit is contained in:
parent
55e2f00ffe
commit
0979acc1a4
@ -53,7 +53,9 @@ export const NotificationCard: React.FC<NotificationCardProps> = (props) => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
markNotificationReadStatus(notification.id);
|
markNotificationReadStatus(notification.id);
|
||||||
router.push(
|
router.push(
|
||||||
`/${workspaceSlug}/projects/${notification.project}/issues/${notification.data.issue.id}`
|
`/${workspaceSlug}/projects/${notification.project}/${
|
||||||
|
notification.data.issue_activity.field === "archived_at" ? "archived-issues" : "issues"
|
||||||
|
}/${notification.data.issue.id}`
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
className={`group w-full flex items-center gap-4 p-3 pl-6 relative cursor-pointer ${
|
className={`group w-full flex items-center gap-4 p-3 pl-6 relative cursor-pointer ${
|
||||||
|
Loading…
Reference in New Issue
Block a user