mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: issue details page parent issue redirection bug (#3662)
This commit is contained in:
parent
1d2e331cec
commit
b827a1af27
@ -6,7 +6,7 @@ import { IssueParentSiblings } from "./siblings";
|
|||||||
// ui
|
// ui
|
||||||
import { CustomMenu } from "@plane/ui";
|
import { CustomMenu } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { useIssueDetail, useIssues, useProject, useProjectState } from "hooks/store";
|
import { useIssues, useProject, useProjectState } from "hooks/store";
|
||||||
// types
|
// types
|
||||||
import { TIssueOperations } from "../root";
|
import { TIssueOperations } from "../root";
|
||||||
import { TIssue } from "@plane/types";
|
import { TIssue } from "@plane/types";
|
||||||
@ -23,7 +23,6 @@ export const IssueParentDetail: FC<TIssueParentDetail> = (props) => {
|
|||||||
const { workspaceSlug, projectId, issueId, issue, issueOperations } = props;
|
const { workspaceSlug, projectId, issueId, issue, issueOperations } = props;
|
||||||
// hooks
|
// hooks
|
||||||
const { issueMap } = useIssues();
|
const { issueMap } = useIssues();
|
||||||
const { peekIssue } = useIssueDetail();
|
|
||||||
const { getProjectById } = useProject();
|
const { getProjectById } = useProject();
|
||||||
const { getProjectStates } = useProjectState();
|
const { getProjectStates } = useProjectState();
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ export const IssueParentDetail: FC<TIssueParentDetail> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="mb-5 flex w-min items-center gap-3 whitespace-nowrap rounded-md border border-custom-border-300 bg-custom-background-80 px-2.5 py-1 text-xs">
|
<div className="mb-5 flex w-min items-center gap-3 whitespace-nowrap rounded-md border border-custom-border-300 bg-custom-background-80 px-2.5 py-1 text-xs">
|
||||||
<Link href={`/${peekIssue?.workspaceSlug}/projects/${parentIssue?.project_id}/issues/${parentIssue.id}`}>
|
<Link href={`/${workspaceSlug}/projects/${parentIssue?.project_id}/issues/${parentIssue.id}`}>
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<div className="flex items-center gap-2.5">
|
<div className="flex items-center gap-2.5">
|
||||||
<span className="block h-2 w-2 rounded-full" style={{ backgroundColor: stateColor }} />
|
<span className="block h-2 w-2 rounded-full" style={{ backgroundColor: stateColor }} />
|
||||||
|
Loading…
Reference in New Issue
Block a user