fix: added project sync after transfer issues (#6200)
This commit is contained in:
parent
1119b9dc36
commit
442b0fd7e5
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue