Skip to content

Commit 442b0fd

Browse files
fix: added project sync after transfer issues (#6200)
1 parent 1119b9d commit 442b0fd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

web/core/store/issue/cycle/issue.store.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import {
2020
} from "@plane/types";
2121
// helpers
2222
import { getDistributionPathsPostUpdate } from "@/helpers/distribution-update.helper";
23+
//local
24+
import { persistence } from "@/local-db/storage.sqlite";
2325
import { BaseIssuesStore, IBaseIssuesStore } from "../helpers/base-issues.store";
2426
//
2527
import { IIssueRootStore } from "../root.store";
@@ -307,8 +309,11 @@ export class CycleIssues extends BaseIssuesStore implements ICycleIssues {
307309
payload
308310
);
309311
// call fetch issues
310-
this.paginationOptions &&
311-
(await this.fetchIssues(workspaceSlug, projectId, "mutation", this.paginationOptions, cycleId));
312+
if (this.paginationOptions) {
313+
await persistence.syncIssues(projectId.toString());
314+
await this.fetchIssues(workspaceSlug, projectId, "mutation", this.paginationOptions, cycleId);
315+
}
316+
312317
return response;
313318
};
314319

0 commit comments

Comments
 (0)