mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: don't add as a sub-issue if parent has been removed (#4731)
This commit is contained in:
parent
1c849103f9
commit
8b6a48f05c
@ -462,7 +462,9 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
|
|||||||
toggleCreateIssueModal(false);
|
toggleCreateIssueModal(false);
|
||||||
}}
|
}}
|
||||||
onSubmit={async (_issue: TIssue) => {
|
onSubmit={async (_issue: TIssue) => {
|
||||||
await subIssueOperations.addSubIssue(workspaceSlug, projectId, parentIssueId, [_issue.id]);
|
if (_issue.parent_id) {
|
||||||
|
await subIssueOperations.addSubIssue(workspaceSlug, projectId, parentIssueId, [_issue.id]);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user