Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: resolved issue with resetting the draft issue form (#3532)

Anmol Singh Bhatiad68669df5151
diff --git a/web/components/issues/draft-issue-form.tsx b/web/components/issues/draft-issue-form.tsx
index 79b91ef409..cfd6370fad 100644
--- a/web/components/issues/draft-issue-form.tsx
+++ b/web/components/issues/draft-issue-form.tsx
@@ -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]);