[WEB-848] fix: issue with parent child relation not being removed parent select dropwdown. (#4120)

This commit is contained in:
Prateek Shourya 2024-04-04 14:24:01 +05:30 committed by GitHub
parent 840bc51537
commit 4cba7ff2f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -684,15 +684,21 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
<CustomMenu.MenuItem className="!p-1" onClick={() => setParentIssueListModalOpen(true)}> <CustomMenu.MenuItem className="!p-1" onClick={() => setParentIssueListModalOpen(true)}>
Change parent issue Change parent issue
</CustomMenu.MenuItem> </CustomMenu.MenuItem>
<CustomMenu.MenuItem <Controller
className="!p-1" control={control}
onClick={() => { name="parent_id"
setValue("parent_id", null); render={({ field: { onChange } }) => (
handleFormChange(); <CustomMenu.MenuItem
}} className="!p-1"
> onClick={() => {
Remove parent issue onChange(null);
</CustomMenu.MenuItem> handleFormChange();
}}
>
Remove parent issue
</CustomMenu.MenuItem>
)}
/>
</> </>
</CustomMenu> </CustomMenu>
) : ( ) : (