Fix build erorrs and unnecessary console.logs (#5730)

This commit is contained in:
Satish Gandham 2024-10-01 15:31:04 +05:30 committed by GitHub
parent 33f6c1fe9e
commit 632282d0df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View file

@ -339,7 +339,7 @@ export class Storage {
}
}
const groupCount = group_by ? Object.keys(issueResults).length : undefined;
const subGroupCount = sub_group_by ? Object.keys(issueResults[Object.keys(issueResults)[0]]).length : undefined;
// const subGroupCount = sub_group_by ? Object.keys(issueResults[Object.keys(issueResults)[0]]).length : undefined;
const groupingEnd = performance.now();
const times = {
@ -348,8 +348,9 @@ export class Storage {
Grouping: groupingEnd - grouping,
};
log(issueResults);
console.table(times);
if ((window as any).DEBUG) {
console.table(times);
}
const total_pages = Math.ceil(total_count / Number(pageSize));
const next_page_results = total_pages > parseInt(page) + 1;
@ -372,7 +373,7 @@ export class Storage {
queries: queries,
local: true,
groupCount,
subGroupCount,
// subGroupCount,
});
return out;
};
@ -449,5 +450,5 @@ export const formatLocalIssue = (issue: any) => {
ARRAY_FIELDS.forEach((field: string) => {
currIssue[field] = currIssue[field] ? JSON.parse(currIssue[field]) : [];
});
return currIssue as TIssue;
return currIssue as TIssue & { group_id?: string; total_issues: number; sub_group_id?: string };
};