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";
|
} from "@plane/types";
|
||||||
// helpers
|
// helpers
|
||||||
import { getDistributionPathsPostUpdate } from "@/helpers/distribution-update.helper";
|
import { getDistributionPathsPostUpdate } from "@/helpers/distribution-update.helper";
|
||||||
|
//local
|
||||||
|
import { persistence } from "@/local-db/storage.sqlite";
|
||||||
import { BaseIssuesStore, IBaseIssuesStore } from "../helpers/base-issues.store";
|
import { BaseIssuesStore, IBaseIssuesStore } from "../helpers/base-issues.store";
|
||||||
//
|
//
|
||||||
import { IIssueRootStore } from "../root.store";
|
import { IIssueRootStore } from "../root.store";
|
||||||
|
|
@ -307,8 +309,11 @@ export class CycleIssues extends BaseIssuesStore implements ICycleIssues {
|
||||||
payload
|
payload
|
||||||
);
|
);
|
||||||
// call fetch issues
|
// call fetch issues
|
||||||
this.paginationOptions &&
|
if (this.paginationOptions) {
|
||||||
(await this.fetchIssues(workspaceSlug, projectId, "mutation", this.paginationOptions, cycleId));
|
await persistence.syncIssues(projectId.toString());
|
||||||
|
await this.fetchIssues(workspaceSlug, projectId, "mutation", this.paginationOptions, cycleId);
|
||||||
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue