forked from github/plane
fix: description not loading while editing an issue (#1349)
This commit is contained in:
parent
8982452500
commit
048a01dbf3
@ -451,7 +451,6 @@ export const IssuesView: React.FC<Props> = ({
|
|||||||
/>
|
/>
|
||||||
<CreateUpdateIssueModal
|
<CreateUpdateIssueModal
|
||||||
isOpen={editIssueModal && issueToEdit?.actionType !== "delete"}
|
isOpen={editIssueModal && issueToEdit?.actionType !== "delete"}
|
||||||
prePopulateData={{ ...issueToEdit }}
|
|
||||||
handleClose={() => setEditIssueModal(false)}
|
handleClose={() => setEditIssueModal(false)}
|
||||||
data={issueToEdit}
|
data={issueToEdit}
|
||||||
/>
|
/>
|
||||||
|
@ -148,7 +148,7 @@ export const IssueForm: FC<IssueFormProps> = ({
|
|||||||
setValue,
|
setValue,
|
||||||
setFocus,
|
setFocus,
|
||||||
} = useForm<IIssue>({
|
} = useForm<IIssue>({
|
||||||
defaultValues,
|
defaultValues: initialData ?? defaultValues,
|
||||||
reValidateMode: "onChange",
|
reValidateMode: "onChange",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = ({
|
|||||||
<IssueForm
|
<IssueForm
|
||||||
issues={issues ?? []}
|
issues={issues ?? []}
|
||||||
handleFormSubmit={handleFormSubmit}
|
handleFormSubmit={handleFormSubmit}
|
||||||
initialData={prePopulateData}
|
initialData={data ?? prePopulateData}
|
||||||
createMore={createMore}
|
createMore={createMore}
|
||||||
setCreateMore={setCreateMore}
|
setCreateMore={setCreateMore}
|
||||||
handleClose={handleClose}
|
handleClose={handleClose}
|
||||||
|
Loading…
Reference in New Issue
Block a user