From 4cba7ff2f5e75ba1bdcf756edb5c3d67d56f8972 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Thu, 4 Apr 2024 14:24:01 +0530 Subject: [PATCH] [WEB-848] fix: issue with parent child relation not being removed parent select dropwdown. (#4120) --- web/components/issues/issue-modal/form.tsx | 24 ++++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/web/components/issues/issue-modal/form.tsx b/web/components/issues/issue-modal/form.tsx index 88d6c3877..235d33b5f 100644 --- a/web/components/issues/issue-modal/form.tsx +++ b/web/components/issues/issue-modal/form.tsx @@ -684,15 +684,21 @@ export const IssueFormRoot: FC = observer((props) => { setParentIssueListModalOpen(true)}> Change parent issue - { - setValue("parent_id", null); - handleFormChange(); - }} - > - Remove parent issue - + ( + { + onChange(null); + handleFormChange(); + }} + > + Remove parent issue + + )} + /> ) : (