mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: resolved issue with resetting the draft issue form (#3532)
This commit is contained in:
parent
4e600e4e9b
commit
d68669df51
@ -170,17 +170,6 @@ export const DraftIssueForm: FC<IssueFormProps> = observer((props) => {
|
||||
// handleClose();
|
||||
// };
|
||||
|
||||
useEffect(() => {
|
||||
if (!isOpen || data) return;
|
||||
|
||||
setLocalStorageValue(
|
||||
JSON.stringify({
|
||||
...payload,
|
||||
})
|
||||
);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [JSON.stringify(payload), isOpen, data]);
|
||||
|
||||
// const onClose = () => {
|
||||
// handleClose();
|
||||
// };
|
||||
@ -256,14 +245,6 @@ export const DraftIssueForm: FC<IssueFormProps> = observer((props) => {
|
||||
.finally(() => setIAmFeelingLucky(false));
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
reset({
|
||||
...defaultValues,
|
||||
...(prePopulatedData ?? {}),
|
||||
...(data ?? {}),
|
||||
});
|
||||
}, [prePopulatedData, reset, data]);
|
||||
|
||||
useEffect(() => {
|
||||
setFocus("name");
|
||||
}, [setFocus]);
|
||||
|
Loading…
Reference in New Issue
Block a user