From 0979acc1a4b910323ff8b8729879336e7c0de551 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Wed, 16 Aug 2023 13:09:56 +0530 Subject: [PATCH] fix: notification card not redirecting to archive issue detail for archived issue (#1861) --- 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 9733a0f5b..1987c7155 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 ${