fix: don't add as a sub-issue if parent has been removed (#4731)
This commit is contained in:
parent
1c849103f9
commit
8b6a48f05c
1 changed files with 3 additions and 1 deletions
|
|
@ -462,7 +462,9 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
|
||||||
toggleCreateIssueModal(false);
|
toggleCreateIssueModal(false);
|
||||||
}}
|
}}
|
||||||
onSubmit={async (_issue: TIssue) => {
|
onSubmit={async (_issue: TIssue) => {
|
||||||
|
if (_issue.parent_id) {
|
||||||
await subIssueOperations.addSubIssue(workspaceSlug, projectId, parentIssueId, [_issue.id]);
|
await subIssueOperations.addSubIssue(workspaceSlug, projectId, parentIssueId, [_issue.id]);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue