Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions web/core/components/issues/issue-modal/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((

useEffect(() => {
// fetching issue details
if (isOpen) fetchIssueDetail(data?.id);
if (isOpen) fetchIssueDetail(data?.id ?? data?.sourceIssueId);

// if modal is closed, reset active project to null
// and return to avoid activeProjectId being set to some other project
Expand All @@ -115,7 +115,8 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((

// clearing up the description state when we leave the component
return () => setDescription(undefined);
}, [data, projectId, isOpen, activeProjectId]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data?.project_id, data?.id, data?.sourceIssueId, projectId, isOpen, activeProjectId]);

const addIssueToCycle = async (issue: TIssue, cycleId: string) => {
if (!workspaceSlug || !issue.project_id) return;
Expand Down
Loading