[WEB-5726] fix: showing an empty state on deleted work item link #8381
This commit is contained in:
parent
9747bffbe2
commit
eafa393524
2 changed files with 80 additions and 47 deletions
23
apps/web/ce/components/browse/workItem-detail.tsx
Normal file
23
apps/web/ce/components/browse/workItem-detail.tsx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { observer } from "mobx-react";
|
||||
import type { TIssue } from "@plane/types";
|
||||
import { IssueDetailRoot } from "@/components/issues/issue-detail/root";
|
||||
|
||||
export type TWorkItemDetailRoot = {
|
||||
workspaceSlug: string;
|
||||
projectId: string;
|
||||
issueId: string;
|
||||
issue: TIssue | undefined;
|
||||
};
|
||||
|
||||
export const WorkItemDetailRoot = observer(function WorkItemDetailRoot(props: TWorkItemDetailRoot) {
|
||||
const { workspaceSlug, projectId, issueId, issue } = props;
|
||||
|
||||
return (
|
||||
<IssueDetailRoot
|
||||
workspaceSlug={workspaceSlug.toString()}
|
||||
projectId={projectId.toString()}
|
||||
issueId={issueId.toString()}
|
||||
is_archived={!!issue?.archived_at}
|
||||
/>
|
||||
);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue