π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
remove issue from cycle while changing cycle (#5246)
rahulrameshad5cbe3283bed
diff --git a/web/core/store/issue/helpers/base-issues.store.ts b/web/core/store/issue/helpers/base-issues.store.tsindex 984d6f355a..a50d1585f5 100644--- a/web/core/store/issue/helpers/base-issues.store.ts+++ b/web/core/store/issue/helpers/base-issues.store.ts@@ -892,9 +892,14 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {addCycleToIssue = async (workspaceSlug: string, projectId: string, cycleId: string, issueId: string) => {const issueCycleId = this.rootIssueStore.issues.getIssueById(issueId)?.cycle_id;++ if (issueCycleId === cycleId) return;+try {// Update issueIds from current storerunInAction(() => {+ // If cycle Id before update is the same as current cycle Id then, remove issueId from list+ if (this.cycleId === issueCycleId) this.removeIssueFromList(issueId);// If cycle Id is the current cycle Id, then, add issue to list of issueIdsif (this.cycleId === cycleId) this.addIssueToList(issueId);// For Each issue update cycle Id by calling current store's update Issue, without making an API call