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

This commit is contained in:
Vamsi Krishna 2024-12-16 15:15:48 +05:30 committed by GitHub
parent 1119b9dc36
commit 442b0fd7e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};