forked from github/plane
fix: handled undefined condition on issue title when we are converting into draft (#4048)
This commit is contained in:
parent
b5ed602e05
commit
ec837a42d5
@ -84,7 +84,7 @@ export const DraftIssueLayout: React.FC<DraftIssueProps> = 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
|
||||
|
Loading…
Reference in New Issue
Block a user