Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-4952]fix: published view work item description #7828

Vamsi Krishna97059a2786d5
diff --git a/apps/space/core/components/issues/peek-overview/issue-details.tsx b/apps/space/core/components/issues/peek-overview/issue-details.tsx
index 49c9d0a68f..83eea5655e 100644
--- a/apps/space/core/components/issues/peek-overview/issue-details.tsx
+++ b/apps/space/core/components/issues/peek-overview/issue-details.tsx
@@ -25,18 +25,12 @@ export const PeekOverviewIssueDetails: React.FC<Props> = observer((props) => {
{project_details?.identifier}-{issueDetails?.sequence_id}
</h6>
<h4 className="break-words text-2xl font-medium">{issueDetails.name}</h4>
- {description !== "" && description !== "<p></p>" && (
+ {description && description !== "" && description !== "<p></p>" && (
<RichTextEditor
editable={false}
anchor={anchor}
id={issueDetails.id}
- initialValue={
- !description ||
- description === "" ||
- (typeof description === "object" && Object.keys(description).length === 0)
- ? "<p></p>"
- : description
- }
+ initialValue={description}
workspaceId={workspaceID?.toString() ?? ""}
/>
)}