Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: added project sync after transfer issues (#6200)

Vamsi Krishna442b0fd7e55b
diff --git a/web/core/store/issue/cycle/issue.store.ts b/web/core/store/issue/cycle/issue.store.ts
index ded0867e67..87f5a92127 100644
--- a/web/core/store/issue/cycle/issue.store.ts
+++ b/web/core/store/issue/cycle/issue.store.ts
@@ -20,6 +20,8 @@ import {
} from "@plane/types";
// helpers
import { getDistributionPathsPostUpdate } from "@/helpers/distribution-update.helper";
+//local
+import { persistence } from "@/local-db/storage.sqlite";
import { BaseIssuesStore, IBaseIssuesStore } from "../helpers/base-issues.store";
//
import { IIssueRootStore } from "../root.store";
@@ -307,8 +309,11 @@ export class CycleIssues extends BaseIssuesStore implements ICycleIssues {
payload
);
// call fetch issues
- this.paginationOptions &&
- (await this.fetchIssues(workspaceSlug, projectId, "mutation", this.paginationOptions, cycleId));
+ if (this.paginationOptions) {
+ await persistence.syncIssues(projectId.toString());
+ await this.fetchIssues(workspaceSlug, projectId, "mutation", this.paginationOptions, cycleId);
+ }
+
return response;
};