fix: selecting label once create using modal (#1537)
This commit is contained in:
parent
16a7bd3bda
commit
9d891ecce1
3 changed files with 18 additions and 1 deletions
|
|
@ -254,6 +254,10 @@ export const IssueForm: FC<IssueFormProps> = ({
|
|||
handleClose={() => setLabelModal(false)}
|
||||
projectId={projectId}
|
||||
user={user}
|
||||
onSuccess={(response) => {
|
||||
setValue("labels", [...watch("labels"), response.id]);
|
||||
setValue("labels_list", [...watch("labels_list"), response.id]);
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue