diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx index ecf938ab3..de9257834 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx @@ -17,7 +17,7 @@ export const CycleIssueQuickActions: React.FC = (props) => { const { issue, handleDelete, handleUpdate, handleRemoveFromView, customActionButton } = props; const router = useRouter(); - const { workspaceSlug } = router.query; + const { workspaceSlug, cycleId } = router.query; // states const [createUpdateIssueModal, setCreateUpdateIssueModal] = useState(false); @@ -75,7 +75,10 @@ export const CycleIssueQuickActions: React.FC = (props) => { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - setIssueToEdit(issue); + setIssueToEdit({ + ...issue, + cycle: cycleId?.toString() ?? null, + }); setCreateUpdateIssueModal(true); }} > diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx index 9145fb870..93ccc49ba 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx @@ -17,7 +17,7 @@ export const ModuleIssueQuickActions: React.FC = (props) => { const { issue, handleDelete, handleUpdate, handleRemoveFromView, customActionButton } = props; const router = useRouter(); - const { workspaceSlug } = router.query; + const { workspaceSlug, moduleId } = router.query; // states const [createUpdateIssueModal, setCreateUpdateIssueModal] = useState(false); @@ -75,7 +75,7 @@ export const ModuleIssueQuickActions: React.FC = (props) => { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - setIssueToEdit(issue); + setIssueToEdit({ ...issue, module: moduleId?.toString() ?? null }); setCreateUpdateIssueModal(true); }} >