diff --git a/web/components/issues/issue-detail/parent-select.tsx b/web/components/issues/issue-detail/parent-select.tsx index a60131de4..a51d0c569 100644 --- a/web/components/issues/issue-detail/parent-select.tsx +++ b/web/components/issues/issue-detail/parent-select.tsx @@ -47,7 +47,7 @@ export const IssueParentSelect: React.FC = observer((props) try { await issueOperations.update(workspaceSlug, projectId, issueId, { parent_id: _issueId }); await issueOperations.fetch(workspaceSlug, projectId, issueId); - toggleParentIssueModal(false); + toggleParentIssueModal(issueId); } catch (error) { console.error("something went wrong while fetching the issue"); } @@ -79,8 +79,8 @@ export const IssueParentSelect: React.FC = observer((props) toggleParentIssueModal(false)} + isOpen={isParentIssueModalOpen === issueId} + handleClose={() => toggleParentIssueModal(null)} onChange={(issue: any) => handleParentIssue(issue?.id)} />