From 3c6ed62d8323678e0202ee34da1099d0080d61b5 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain Date: Mon, 14 Aug 2023 18:11:33 +0530 Subject: [PATCH] fix: notification card not redirecting to archive issue detail for archived issue --- apps/app/components/notifications/notification-card.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/app/components/notifications/notification-card.tsx b/apps/app/components/notifications/notification-card.tsx index 9733a0f5b21..1987c7155c0 100644 --- a/apps/app/components/notifications/notification-card.tsx +++ b/apps/app/components/notifications/notification-card.tsx @@ -53,7 +53,9 @@ export const NotificationCard: React.FC = (props) => { onClick={() => { markNotificationReadStatus(notification.id); 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 ${