forked from github/plane
[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:
parent
36bc7bf996
commit
5244ba72c9
@ -55,7 +55,10 @@ export const DraftIssueLayout: React.FC<DraftIssueProps> = 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)
|
||||
|
Loading…
Reference in New Issue
Block a user