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;
|
this.error = null;
|
||||||
|
|
||||||
const params = this.rootStore?.cycleIssueFilter?.appliedFilters;
|
const params = this.rootStore?.cycleIssueFilter?.appliedFilters;
|
||||||
const issueResponse: any = await this.cycleService.getCycleIssuesWithParams(
|
const issueResponse = await this.cycleService.getCycleIssuesWithParams(workspaceSlug, projectId, cycleId, params);
|
||||||
workspaceSlug,
|
|
||||||
projectId,
|
|
||||||
cycleId,
|
|
||||||
params
|
|
||||||
);
|
|
||||||
|
|
||||||
const issueType = this.getIssueType;
|
const issueType = this.getIssueType;
|
||||||
if (issueType != null) {
|
if (issueType != null) {
|
||||||
@ -308,7 +303,7 @@ export class CycleIssueStore implements ICycleIssueStore {
|
|||||||
...this.issues,
|
...this.issues,
|
||||||
[cycleId]: {
|
[cycleId]: {
|
||||||
...this.issues[cycleId],
|
...this.issues[cycleId],
|
||||||
[issueType]: issueResponse?.["data"],
|
[issueType]: issueResponse,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
|
@ -341,7 +341,7 @@ export class IssueStore implements IIssueStore {
|
|||||||
this.rootStore.project.setProjectId(projectId);
|
this.rootStore.project.setProjectId(projectId);
|
||||||
|
|
||||||
const params = this.rootStore?.issueFilter?.appliedFilters;
|
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;
|
const issueType = this.getIssueType;
|
||||||
if (issueType != null) {
|
if (issueType != null) {
|
||||||
@ -349,7 +349,7 @@ export class IssueStore implements IIssueStore {
|
|||||||
...this.issues,
|
...this.issues,
|
||||||
[projectId]: {
|
[projectId]: {
|
||||||
...this.issues[projectId],
|
...this.issues[projectId],
|
||||||
[issueType]: issueResponse?.["data"],
|
[issueType]: issueResponse,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
|
@ -305,7 +305,7 @@ export class ModuleIssueStore implements IModuleIssueStore {
|
|||||||
this.error = null;
|
this.error = null;
|
||||||
|
|
||||||
const params = this.rootStore?.moduleFilter?.appliedFilters;
|
const params = this.rootStore?.moduleFilter?.appliedFilters;
|
||||||
const issueResponse: any = await this.moduleService.getModuleIssuesWithParams(
|
const issueResponse = await this.moduleService.getModuleIssuesWithParams(
|
||||||
workspaceSlug,
|
workspaceSlug,
|
||||||
projectId,
|
projectId,
|
||||||
moduleId,
|
moduleId,
|
||||||
@ -318,7 +318,7 @@ export class ModuleIssueStore implements IModuleIssueStore {
|
|||||||
...this.issues,
|
...this.issues,
|
||||||
[moduleId]: {
|
[moduleId]: {
|
||||||
...this.issues[moduleId],
|
...this.issues[moduleId],
|
||||||
[issueType]: issueResponse?.["data"],
|
[issueType]: issueResponse,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user