fix: handled undefined condition on issue title when we are converting into draft (#4048)

This commit is contained in:
guru_sainath 2024-03-22 20:06:49 +05:30 committed by GitHub
parent b5ed602e05
commit ec837a42d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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