forked from github/plane
fix: create issue modal restting (#1647)
This commit is contained in:
parent
08a025f67c
commit
6db1db55e9
@ -225,9 +225,16 @@ export const IssueForm: FC<IssueFormProps> = ({
|
||||
reset({
|
||||
...defaultValues,
|
||||
...initialData,
|
||||
});
|
||||
}, [setFocus, initialData, reset]);
|
||||
|
||||
// update projectId in form when projectId changes
|
||||
useEffect(() => {
|
||||
reset({
|
||||
...getValues(),
|
||||
project: projectId,
|
||||
});
|
||||
}, [setFocus, initialData, reset, projectId]);
|
||||
}, [getValues, projectId, reset]);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user