Skip to content

Commit

Permalink
chore: issue transfer validation added for completed cycle (#3715)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Feb 21, 2024
1 parent 48b55ef commit 133c9b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/components/cycles/transfer-issues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useRouter } from "next/router";

import useSWR from "swr";

import isEmpty from "lodash/isEmpty";
// component
import { Button, TransferIcon } from "@plane/ui";
// icon
Expand Down Expand Up @@ -43,7 +44,7 @@ export const TransferIssues: React.FC<Props> = (props) => {
<span>Completed cycles are not editable.</span>
</div>

{transferableIssuesCount > 0 && (
{isEmpty(cycleDetails?.progress_snapshot) && transferableIssuesCount > 0 && (
<div>
<Button variant="primary" prependIcon={<TransferIcon color="white" />} onClick={handleClick}>
Transfer Issues
Expand Down

0 comments on commit 133c9b3

Please sign in to comment.