From 5244ba72c908136525ce069a76e7b9c0a4199c8e Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:43:42 +0530 Subject: [PATCH] [WEB-746] chore: draft issue modal improvement (#3966) * chore: draft issue modal improvement * chore: draft issue modal improvement * chore: draft issue modal improvement * chore: draft issue modal improvement --- web/components/issues/issue-modal/draft-issue-layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 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 785ccb0bb..71bf1fae0 100644 --- a/web/components/issues/issue-modal/draft-issue-layout.tsx +++ b/web/components/issues/issue-modal/draft-issue-layout.tsx @@ -55,7 +55,10 @@ export const DraftIssueLayout: React.FC = observer((props) => { const handleCreateDraftIssue = async () => { if (!changesMade || !workspaceSlug || !projectId) return; - const payload = { ...changesMade }; + const payload = { + ...changesMade, + name: changesMade.name?.trim() === "" ? "Untitled" : changesMade.name?.trim(), + }; await issueDraftService .createDraftIssue(workspaceSlug.toString(), projectId.toString(), payload)