mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 08:09:33 +01:00
fix: create issue modal restting (#1647)
This commit is contained in:
committed by
GitHub
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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user