[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
This commit is contained in:
Anmol Singh Bhatia 2024-03-15 17:43:42 +05:30 committed by GitHub
parent 36bc7bf996
commit 5244ba72c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,10 @@ export const DraftIssueLayout: React.FC<DraftIssueProps> = observer((props) => {
const handleCreateDraftIssue = async () => { const handleCreateDraftIssue = async () => {
if (!changesMade || !workspaceSlug || !projectId) return; if (!changesMade || !workspaceSlug || !projectId) return;
const payload = { ...changesMade }; const payload = {
...changesMade,
name: changesMade.name?.trim() === "" ? "Untitled" : changesMade.name?.trim(),
};
await issueDraftService await issueDraftService
.createDraftIssue(workspaceSlug.toString(), projectId.toString(), payload) .createDraftIssue(workspaceSlug.toString(), projectId.toString(), payload)