From df8504e6f71e163cdf97700434b39d0e5acb722b Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:22:47 +0530 Subject: [PATCH] fix: issue redirection (#1733) --- .../components/core/views/board-view/single-issue.tsx | 2 +- .../core/views/calendar-view/single-issue.tsx | 2 +- .../components/core/views/list-view/single-issue.tsx | 10 +++++----- .../core/views/spreadsheet-view/single-issue.tsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/app/components/core/views/board-view/single-issue.tsx b/apps/app/components/core/views/board-view/single-issue.tsx index 533d4ffe7..bfae63a2c 100644 --- a/apps/app/components/core/views/board-view/single-issue.tsx +++ b/apps/app/components/core/views/board-view/single-issue.tsx @@ -221,7 +221,7 @@ export const SingleBoardIssue: React.FC = ({ Copy issue link diff --git a/apps/app/components/core/views/calendar-view/single-issue.tsx b/apps/app/components/core/views/calendar-view/single-issue.tsx index 9a22a9a59..319fd74db 100644 --- a/apps/app/components/core/views/calendar-view/single-issue.tsx +++ b/apps/app/components/core/views/calendar-view/single-issue.tsx @@ -192,7 +192,7 @@ export const SingleCalendarIssue: React.FC = ({ )} - + {properties.key && ( = ({ }); }; - const singleIssuePath = isArchivedIssues - ? `/${workspaceSlug}/projects/${projectId}/archived-issues/${issue.id}` - : `/${workspaceSlug}/projects/${projectId}/issues/${issue.id}`; + const issuePath = isArchivedIssues + ? `/${workspaceSlug}/projects/${issue.project}/archived-issues/${issue.id}` + : `/${workspaceSlug}/projects/${issue.project}/issues/${issue.id}`; const isNotAllowed = userAuth.isGuest || userAuth.isViewer || disableUserActions || isArchivedIssues; @@ -187,7 +187,7 @@ export const SingleListIssue: React.FC = ({ Copy issue link - + Open issue in new tab @@ -202,7 +202,7 @@ export const SingleListIssue: React.FC = ({ }} >
- + {properties.key && ( = ({ )}
- + {issue.name}