From ec837a42d56466ed4ba8e47640f638d0e4c93bb7 Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Fri, 22 Mar 2024 20:06:49 +0530 Subject: [PATCH] fix: handled undefined condition on issue title when we are converting into draft (#4048) --- web/components/issues/issue-modal/draft-issue-layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/issues/issue-modal/draft-issue-layout.tsx b/web/components/issues/issue-modal/draft-issue-layout.tsx index 799a6bc4a..5ec7e3a99 100644 --- a/web/components/issues/issue-modal/draft-issue-layout.tsx +++ b/web/components/issues/issue-modal/draft-issue-layout.tsx @@ -84,7 +84,7 @@ export const DraftIssueLayout: React.FC = observer((props) => { const payload = { ...changesMade, - name: changesMade.name?.trim() === "" ? "Untitled" : changesMade.name?.trim(), + name: changesMade?.name && changesMade?.name?.trim() === "" ? changesMade.name?.trim() : "Untitled", }; await issueDraftService