fix: reverted issue response structure

This commit is contained in:
dakshesh14 2023-11-06 21:41:42 +05:30
parent 2891ed1c3a
commit bc492fa94f
3 changed files with 6 additions and 11 deletions

View File

@ -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(() => {

View File

@ -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(() => {

View File

@ -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(() => {