diff --git a/web/core/store/issue/cycle/issue.store.ts b/web/core/store/issue/cycle/issue.store.ts index ded0867e671..87f5a92127e 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; };