From 6196c750f14eec738d17d054f39a3dbae9bdf483 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Wed, 1 May 2024 19:55:37 +0530 Subject: [PATCH] fix: issue description persistence (#4331) --- web/components/inbox/content/issue-root.tsx | 2 +- web/components/issues/peek-overview/issue-detail.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/inbox/content/issue-root.tsx b/web/components/inbox/content/issue-root.tsx index 72a5e833d..2a6166ccb 100644 --- a/web/components/inbox/content/issue-root.tsx +++ b/web/components/inbox/content/issue-root.tsx @@ -136,7 +136,7 @@ export const InboxIssueMainContent: React.FC = observer((props) => { workspaceSlug={workspaceSlug} projectId={issue.project_id} issueId={issue.id} - swrIssueDescription={null} + swrIssueDescription={issue.description_html ?? "

"} initialValue={issue.description_html ?? "

"} disabled={!isEditable} issueOperations={issueOperations} diff --git a/web/components/issues/peek-overview/issue-detail.tsx b/web/components/issues/peek-overview/issue-detail.tsx index d7b880266..a13625265 100644 --- a/web/components/issues/peek-overview/issue-detail.tsx +++ b/web/components/issues/peek-overview/issue-detail.tsx @@ -78,7 +78,7 @@ export const PeekOverviewIssueDetails: FC = observer( issueId={issue.id} initialValue={issueDescription} // for now peek overview doesn't have live syncing while tab changes - swrIssueDescription={null} + swrIssueDescription={issueDescription} disabled={disabled} issueOperations={issueOperations} setIsSubmitting={(value) => setIsSubmitting(value)}