forked from github/plane
fix: reverted issue response structure
This commit is contained in:
parent
2891ed1c3a
commit
bc492fa94f
@ -295,12 +295,7 @@ export class CycleIssueStore implements ICycleIssueStore {
|
||||
this.error = null;
|
||||
|
||||
const params = this.rootStore?.cycleIssueFilter?.appliedFilters;
|
||||
const issueResponse: any = await this.cycleService.getCycleIssuesWithParams(
|
||||
workspaceSlug,
|
||||
projectId,
|
||||
cycleId,
|
||||
params
|
||||
);
|
||||
const issueResponse = await this.cycleService.getCycleIssuesWithParams(workspaceSlug, projectId, cycleId, params);
|
||||
|
||||
const issueType = this.getIssueType;
|
||||
if (issueType != null) {
|
||||
@ -308,7 +303,7 @@ export class CycleIssueStore implements ICycleIssueStore {
|
||||
...this.issues,
|
||||
[cycleId]: {
|
||||
...this.issues[cycleId],
|
||||
[issueType]: issueResponse?.["data"],
|
||||
[issueType]: issueResponse,
|
||||
},
|
||||
};
|
||||
runInAction(() => {
|
||||
|
@ -341,7 +341,7 @@ export class IssueStore implements IIssueStore {
|
||||
this.rootStore.project.setProjectId(projectId);
|
||||
|
||||
const params = this.rootStore?.issueFilter?.appliedFilters;
|
||||
const issueResponse: any = await this.issueService.getIssuesWithParams(workspaceSlug, projectId, params);
|
||||
const issueResponse = await this.issueService.getIssuesWithParams(workspaceSlug, projectId, params);
|
||||
|
||||
const issueType = this.getIssueType;
|
||||
if (issueType != null) {
|
||||
@ -349,7 +349,7 @@ export class IssueStore implements IIssueStore {
|
||||
...this.issues,
|
||||
[projectId]: {
|
||||
...this.issues[projectId],
|
||||
[issueType]: issueResponse?.["data"],
|
||||
[issueType]: issueResponse,
|
||||
},
|
||||
};
|
||||
runInAction(() => {
|
||||
|
@ -305,7 +305,7 @@ export class ModuleIssueStore implements IModuleIssueStore {
|
||||
this.error = null;
|
||||
|
||||
const params = this.rootStore?.moduleFilter?.appliedFilters;
|
||||
const issueResponse: any = await this.moduleService.getModuleIssuesWithParams(
|
||||
const issueResponse = await this.moduleService.getModuleIssuesWithParams(
|
||||
workspaceSlug,
|
||||
projectId,
|
||||
moduleId,
|
||||
@ -318,7 +318,7 @@ export class ModuleIssueStore implements IModuleIssueStore {
|
||||
...this.issues,
|
||||
[moduleId]: {
|
||||
...this.issues[moduleId],
|
||||
[issueType]: issueResponse?.["data"],
|
||||
[issueType]: issueResponse,
|
||||
},
|
||||
};
|
||||
runInAction(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user